Move foreign potential energy accumulation
[alexxy/gromacs.git] / src / gromacs / mdrun / rerun.cpp
index 2c59d9635dd0aabff1bd7bc851ecc2d737b194ad..2d12115cf5da075fa51dabcb8469a2ce771e2acd 100644 (file)
@@ -588,13 +588,6 @@ void gmx::LegacySimulator::do_rerun()
            but what we actually need entering the new cycle is the new shake_vir value. Ideally, we could
            generate the new shake_vir, but test the veta value for convergence.  This will take some thought. */
 
-        if (ir->efep != efepNO)
-        {
-            /* Sum up the foreign energy and dhdl terms for md and sd.
-               Currently done every step so that dhdl is correct in the .edr */
-            sum_dhdl(enerd, state->lambda, *ir->fepvals);
-        }
-
         /* Output stuff */
         if (MASTER(cr))
         {