diff --git a/src/fix_temp_rescale.cpp b/src/fix_temp_rescale.cpp index b794864c48..6bc9b47f17 100644 --- a/src/fix_temp_rescale.cpp +++ b/src/fix_temp_rescale.cpp @@ -101,7 +101,6 @@ void FixTempRescale::init() temperature->init(); // not yet called by Modify::init() efactor = (0.5 * force->boltz * temperature->dof); - energy = 0.0; } /* ---------------------------------------------------------------------- */ @@ -149,7 +148,7 @@ void FixTempRescale::end_of_step() } } - } else energy = 0.0; + } } /* ---------------------------------------------------------------------- */