Commit 48c0d4b3 by Francois Gygi

Merge branch 'develop'

parents 77d48071 211d894b
......@@ -294,7 +294,8 @@ void EnergyFunctional::update_vhxc(bool compute_stress, bool update_vh,
sum -= real(conj(vxc_g[0])*rh[0]);
double tsum = 0.0;
MPI_Allreduce(&sum,&tsum,1,MPI_DOUBLE,MPI_SUM,vbasis_->comm());
dxc_ += tsum;
// factor nspin: rhocore_g contains half the core charge if nspin == 2
dxc_ += wf.nspin() * tsum;
}
tmap["exc"].stop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment