/*
* 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.
*
* \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