Apply clang-format to source tree
[alexxy/gromacs.git] / src / programs / mdrun / tests / mimic.cpp
index f87695e8fd2d51e3b8918be351d3a1bc93d3ff7e..244a98a25fda8d971c963ded4751d292630e1351 100644 (file)
@@ -65,41 +65,37 @@ namespace test
 //! Test fixture for bonded interactions
 class MimicTest : public gmx::test::MdrunTestFixture
 {
-    public:
-        //! Execute the trajectory writing test
-        void setupGrompp(const char *index_file, const char *top_file, const char *gro_file)
-        {
-            runner_.topFileName_ = TestFileManager::getInputFilePath(top_file);
-            runner_.groFileName_ = TestFileManager::getInputFilePath(gro_file);
-            runner_.ndxFileName_ = TestFileManager::getInputFilePath(index_file);
-            runner_.useStringAsMdpFile("integrator                = mimic\n"
-                                       "QMMM-grps                 = QMatoms");
-        }
-        //! Prepare an mdrun caller
-        CommandLine setupRerun()
-        {
-            CommandLine rerunCaller;
-            rerunCaller.append("mdrun");
-            rerunCaller.addOption("-rerun", runner_.groFileName_);
-            runner_.edrFileName_ = fileManager_.getTemporaryFilePath(".edr");
-            return rerunCaller;
-        }
-        //! Check the output of mdrun
-        void checkRerun()
-        {
-            EnergyTermsToCompare energyTermsToCompare
-            {{
-                 {
-                     interaction_function[F_EPOT].longname, relativeToleranceAsFloatingPoint(-20.1, 1e-4)
-                 },
-             }};
-
-            TestReferenceData refData;
-            auto              checker = refData.rootChecker();
-            checkEnergiesAgainstReferenceData(runner_.edrFileName_,
-                                              energyTermsToCompare,
-                                              &checker);
-        }
+public:
+    //! Execute the trajectory writing test
+    void setupGrompp(const char* index_file, const char* top_file, const char* gro_file)
+    {
+        runner_.topFileName_ = TestFileManager::getInputFilePath(top_file);
+        runner_.groFileName_ = TestFileManager::getInputFilePath(gro_file);
+        runner_.ndxFileName_ = TestFileManager::getInputFilePath(index_file);
+        runner_.useStringAsMdpFile(
+                "integrator                = mimic\n"
+                "QMMM-grps                 = QMatoms");
+    }
+    //! Prepare an mdrun caller
+    CommandLine setupRerun()
+    {
+        CommandLine rerunCaller;
+        rerunCaller.append("mdrun");
+        rerunCaller.addOption("-rerun", runner_.groFileName_);
+        runner_.edrFileName_ = fileManager_.getTemporaryFilePath(".edr");
+        return rerunCaller;
+    }
+    //! Check the output of mdrun
+    void checkRerun()
+    {
+        EnergyTermsToCompare energyTermsToCompare{ {
+                { interaction_function[F_EPOT].longname, relativeToleranceAsFloatingPoint(-20.1, 1e-4) },
+        } };
+
+        TestReferenceData refData;
+        auto              checker = refData.rootChecker();
+        checkEnergiesAgainstReferenceData(runner_.edrFileName_, energyTermsToCompare, &checker);
+    }
 };
 
 // This test checks if the energies produced with one quantum molecule are reasonable