Commit c4a3c200 by Francois Gygi

Fix uninitialized variable epv_


git-svn-id: http://qboxcode.org/svn/qb/trunk@1719 cba15fb0-1239-40c8-b417-11db7ca47a34
parent d7390596
......@@ -693,6 +693,7 @@ double EnergyFunctional::energy(bool compute_hpsi, Wavefunction& dwf,
if ( el_enth_ )
enthalpy_ += eefield_;
epv_ = 0.0;
if ( compute_stress )
{
valarray<double> sigma_ext(s_.ctrl.ext_stress,6);
......
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