Gromacs
2016.6
|
#include <programs/mdrun/tests/multisimtest.h>
Test fixture for multi-sim functionality.
This is intended to be re-used also for tests of functionality that are derived from multi-sim, e.g. REMD.
Public Member Functions | |
MultiSimTest () | |
Constructor. | |
void | organizeMdpFile (const char *controlVariable, int numSteps=2) |
Organize the .mdp file for this rank. More... | |
void | runExitsNormallyTest () |
Test that a basic simulation works. | |
void | runMaxhTest () |
Test that mdrun -maxh and restart works. | |
Public Attributes | |
int | size_ |
Number of MPI ranks. | |
int | rank_ |
MPI rank of this process. | |
CommandLinePointer | mdrunCaller_ |
Object for building the mdrun command line. | |
std::string | mdrunTprFileName_ |
Name of .tpr file to be used by mdrun. | |
Public Attributes inherited from gmx::test::MdrunTestFixture | |
SimulationRunner | runner_ |
Helper object to manage the preparation for and call of mdrun. | |
Public Attributes inherited from gmx::test::IntegrationTestFixture | |
::gmx::test::TestFileManager | fileManager_ |
Object that manages finding input files, writing temporary output files and cleaning up files. | |
Additional Inherited Members | |
Protected Member Functions inherited from gmx::test::IntegrationTestFixture | |
void | redirectStringToStdin (const char *theString) |
Accepts a string as input, writes it to a temporary file and then reopens stdin to read the contents of that string. More... | |
void | redirectStdoutToDevNull () |
Discards stdout while running a test. More... | |
void | redirectStderrToDevNull () |
Discards stderr while running a test. More... | |
void gmx::test::MultiSimTest::organizeMdpFile | ( | const char * | controlVariable, |
int | numSteps = 2 |
||
) |
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.
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. |
numSteps | Number of MD steps to perform. |