Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / programs / mdrun / tests / rerun.cpp
index e358b9cd1ec12878815e88384df75eeec542f13a..8bf4485e7181da4c77bb3a608a986ff6b8a8dc4a 100644 (file)
@@ -124,7 +124,8 @@ void executeRerunTest(TestFileManager*            fileManager,
         fprintf(stdout,
                 "Test system '%s' cannot run with %d ranks.\n"
                 "The supported numbers are: %s\n",
-                simulationName.c_str(), numRanksAvailable,
+                simulationName.c_str(),
+                numRanksAvailable,
                 reportNumbersOfPpRanksSupported(simulationName).c_str());
         return;
     }
@@ -169,7 +170,8 @@ TEST_P(MdrunRerunTest, WithinTolerances)
     SCOPED_TRACE(
             formatString("Comparing normal and rerun of simulation '%s' "
                          "with integrator '%s'",
-                         simulationName.c_str(), integrator.c_str()));
+                         simulationName.c_str(),
+                         integrator.c_str()));
 
     auto mdpFieldValues =
             prepareMdpFieldValues(simulationName.c_str(), integrator.c_str(), "no", "no");
@@ -178,8 +180,8 @@ TEST_P(MdrunRerunTest, WithinTolerances)
     const int            toleranceScaleFactor = (integrator == "bd") ? 2 : 1;
     EnergyTermsToCompare energyTermsToCompare{ {
             { interaction_function[F_EPOT].longname,
-              relativeToleranceAsPrecisionDependentUlp(10.0, 24 * toleranceScaleFactor,
-                                                       40 * toleranceScaleFactor) },
+              relativeToleranceAsPrecisionDependentUlp(
+                      10.0, 24 * toleranceScaleFactor, 40 * toleranceScaleFactor) },
     } };
 
     // Specify how trajectory frame matching must work
@@ -187,8 +189,13 @@ TEST_P(MdrunRerunTest, WithinTolerances)
                                                TrajectoryComparison::s_defaultTrajectoryTolerances };
 
     int numWarningsToTolerate = 0;
-    executeRerunTest(&fileManager_, &runner_, simulationName, numWarningsToTolerate, mdpFieldValues,
-                     energyTermsToCompare, trajectoryComparison);
+    executeRerunTest(&fileManager_,
+                     &runner_,
+                     simulationName,
+                     numWarningsToTolerate,
+                     mdpFieldValues,
+                     energyTermsToCompare,
+                     trajectoryComparison);
 }
 
 // TODO The time for OpenCL kernel compilation means these tests time
@@ -223,7 +230,9 @@ TEST_P(MdrunRerunFreeEnergyTest, WithinTolerances)
     SCOPED_TRACE(
             formatString("Comparing normal and rerun of simulation '%s' "
                          "with integrator '%s' for initial lambda state %d",
-                         simulationName.c_str(), integrator.c_str(), initLambdaState));
+                         simulationName.c_str(),
+                         integrator.c_str(),
+                         initLambdaState));
 
     auto mdpFieldValues =
             prepareMdpFieldValues(simulationName.c_str(), integrator.c_str(), "no", "no");
@@ -246,8 +255,13 @@ TEST_P(MdrunRerunFreeEnergyTest, WithinTolerances)
     // The md integrator triggers a warning for nearly decoupled
     // states, which we need to suppress. TODO sometimes?
     int numWarningsToTolerate = (integrator == "md") ? 1 : 0;
-    executeRerunTest(&fileManager_, &runner_, simulationName, numWarningsToTolerate, mdpFieldValues,
-                     energyTermsToCompare, trajectoryComparison);
+    executeRerunTest(&fileManager_,
+                     &runner_,
+                     simulationName,
+                     numWarningsToTolerate,
+                     mdpFieldValues,
+                     energyTermsToCompare,
+                     trajectoryComparison);
 }
 
 // TODO The time for OpenCL kernel compilation means these tests time