Posted on

Printing correlation energy in nwchem dft calculations

I learned the hard way (examining the code, the variables nexc [sometimes nExc] and idecomp are confusing) that the keyword “decomp” activates decomposition of the exchange-correlation energy into exchange and correlation. So the dft block should look like:

dft
  mult
  xc…
  decomp
end