Commit e18cc6c0 by Francois Gygi

Fix k-point weight in calculation of etotal_int


git-svn-id: http://qboxcode.org/svn/qb/trunk@1871 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 214b40d4
......@@ -600,7 +600,7 @@ complex<double> Wavefunction::dot(const Wavefunction& wf) const
{
for ( int ikp = 0; ikp < kpoint_.size(); ikp++ )
{
sum += sd_[ispin][ikp]->dot(*wf.sd_[ispin][ikp]);
sum += weight_[ikp] * sd_[ispin][ikp]->dot(*wf.sd_[ispin][ikp]);
}
}
return sum;
......
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