Apply clang-format to source tree
[alexxy/gromacs.git] / src / programs / mdrun / tests / multisimtest.h
index 7eadeda2a082a98ae690cd995cecf919316a597c..11419d86aca037528c4a30f0a080a610aec24abe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2013,2014,2015,2016,2018, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -68,45 +68,42 @@ typedef std::unique_ptr<CommandLine> CommandLinePointer;
  *
  * \ingroup module_mdrun_integration_tests
  */
-class MultiSimTest : public ::testing::Test,
-                     public ::testing::WithParamInterface<const char *>
+class MultiSimTest : public ::testing::Test, public ::testing::WithParamInterface<const char*>
 {
-    public:
-        MultiSimTest();
+public:
+    MultiSimTest();
 
-        /*! \brief Organize the .mdp file for this rank
-         *
-         * For testing multi-simulation, this .mdp file is more
-         * complicated than it needs to be, but it does little harm,
-         * and doing it this way allows this function to be re-used
-         * for testing replica-exchange.
-         *
-         * \param runner          The simulation runner that uses the
-         *                        mdp file that is organized.
-         * \param controlVariable Allows parameterization to work with
-         * T, P or (later) lambda as the control variable, by passing a
-         * string with "mdp-param = value" such that different paths
-         * in init_replica_exchange() are followed.
-         * \param numSteps        Number of MD steps to perform.
-         */
-        void organizeMdpFile(SimulationRunner *runner,
-                             const char       *controlVariable,
-                             int               numSteps = 2);
-        //! Test that a basic simulation works
-        void runExitsNormallyTest();
-        //! Test that mdrun -maxh and restart works
-        void runMaxhTest();
-        //! Number of MPI ranks
-        int                size_;
-        //! MPI rank of this process
-        int                rank_;
-        //! Object for building the mdrun command line
-        CommandLinePointer mdrunCaller_;
-        //! Manages temporary files during the test.
-        TestFileManager    fileManager_;
+    /*! \brief Organize the .mdp file for this rank
+     *
+     * For testing multi-simulation, this .mdp file is more
+     * complicated than it needs to be, but it does little harm,
+     * and doing it this way allows this function to be re-used
+     * for testing replica-exchange.
+     *
+     * \param runner          The simulation runner that uses the
+     *                        mdp file that is organized.
+     * \param controlVariable Allows parameterization to work with
+     * T, P or (later) lambda as the control variable, by passing a
+     * string with "mdp-param = value" such that different paths
+     * in init_replica_exchange() are followed.
+     * \param numSteps        Number of MD steps to perform.
+     */
+    void organizeMdpFile(SimulationRunner* runner, const char* controlVariable, int numSteps = 2);
+    //! Test that a basic simulation works
+    void runExitsNormallyTest();
+    //! Test that mdrun -maxh and restart works
+    void runMaxhTest();
+    //! Number of MPI ranks
+    int size_;
+    //! MPI rank of this process
+    int rank_;
+    //! Object for building the mdrun command line
+    CommandLinePointer mdrunCaller_;
+    //! Manages temporary files during the test.
+    TestFileManager fileManager_;
 };
 
-}  // namespace test
-}  // namespace gmx
+} // namespace test
+} // namespace gmx
 
 #endif