Move computeSlowForces into stepWork
[alexxy/gromacs.git] / src / programs / mdrun / tests / simulatorcomparison.cpp
index c832d5ab9f1c267b42b413d6ccc6c0082084fac0..b4c72451aa4800ec58985e0c80c95ddb5c37760f 100644 (file)
@@ -86,11 +86,12 @@ void runMdrun(SimulationRunner* runner, const std::vector<SimulationOptionTuple>
 
 void compareEnergies(const std::string&          edr1Name,
                      const std::string&          edr2Name,
-                     const EnergyTermsToCompare& energyTermsToCompare)
+                     const EnergyTermsToCompare& energyTermsToCompare,
+                     const MaxNumFrames          maxNumFrames)
 {
     // Build the functor that will compare energy frames on the chosen
     // energy terms.
-    EnergyComparison energyComparison(energyTermsToCompare, MaxNumFrames::compareAllFrames());
+    EnergyComparison energyComparison(energyTermsToCompare, maxNumFrames);
 
     // Build the manager that will present matching pairs of frames to compare.
     //