{
GMX_UNUSED_VALUE(options);
#if GMX_OPENMP
- options->addOption(IntegerOption("ntomp").store(&g_numOpenMPThreads)
- .description("Number of OpenMP threads for child mdrun calls"));
+ options->addOption(
+ IntegerOption("ntomp").store(&g_numOpenMPThreads).description("Number of OpenMP threads for child mdrun calls"));
#endif
}
//! \endcond
-} // namespace
+} // namespace
-SimulationRunner::SimulationRunner(TestFileManager *fileManager) :
+SimulationRunner::SimulationRunner(TestFileManager* fileManager) :
fullPrecisionTrajectoryFileName_(fileManager->getTemporaryFilePath(".trr")),
mdpOutputFileName_(fileManager->getTemporaryFilePath("output.mdp")),
tprFileName_(fileManager->getTemporaryFilePath(".tpr")),
// TODO There is possible outstanding unexplained behaviour of mdp
// input parsing e.g. Redmine 2074, so this particular set of mdp
// contents is also tested with GetIrTest in gmxpreprocess-test.
-void
-SimulationRunner::useEmptyMdpFile()
+void SimulationRunner::useEmptyMdpFile()
{
useStringAsMdpFile("");
}
-void
-SimulationRunner::useStringAsMdpFile(const char *mdpString)
+void SimulationRunner::useStringAsMdpFile(const char* mdpString)
{
useStringAsMdpFile(std::string(mdpString));
}
-void
-SimulationRunner::useStringAsMdpFile(const std::string &mdpString)
+void SimulationRunner::useStringAsMdpFile(const std::string& mdpString)
{
mdpInputContents_ = mdpString;
}
-void
-SimulationRunner::useStringAsNdxFile(const char *ndxString)
+void SimulationRunner::useStringAsNdxFile(const char* ndxString)
{
gmx::TextWriter::writeFileFromString(ndxFileName_, ndxString);
}
-void
-SimulationRunner::useTopG96AndNdxFromDatabase(const std::string &name)
+void SimulationRunner::useTopG96AndNdxFromDatabase(const std::string& name)
{
topFileName_ = gmx::test::TestFileManager::getInputFilePath(name + ".top");
groFileName_ = gmx::test::TestFileManager::getInputFilePath(name + ".g96");
ndxFileName_ = gmx::test::TestFileManager::getInputFilePath(name + ".ndx");
}
-void
-SimulationRunner::useTopGroAndNdxFromDatabase(const std::string &name)
+void SimulationRunner::useTopGroAndNdxFromDatabase(const std::string& name)
{
topFileName_ = gmx::test::TestFileManager::getInputFilePath(name + ".top");
groFileName_ = gmx::test::TestFileManager::getInputFilePath(name + ".gro");
ndxFileName_ = gmx::test::TestFileManager::getInputFilePath(name + ".ndx");
}
-void
-SimulationRunner::useGroFromDatabase(const char *name)
+void SimulationRunner::useGroFromDatabase(const char* name)
{
groFileName_ = gmx::test::TestFileManager::getInputFilePath((std::string(name) + ".gro").c_str());
}
-int
-SimulationRunner::callGromppOnThisRank(const CommandLine &callerRef)
+int SimulationRunner::callGromppOnThisRank(const CommandLine& callerRef)
{
const std::string mdpInputFileName(fileManager_.getTemporaryFilePath("input.mdp"));
gmx::TextWriter::writeFileFromString(mdpInputFileName, mdpInputContents_);
return gmx_grompp(caller.argc(), caller.argv());
}
-int
-SimulationRunner::callGromppOnThisRank()
+int SimulationRunner::callGromppOnThisRank()
{
return callGromppOnThisRank(CommandLine());
}
-int
-SimulationRunner::callGrompp(const CommandLine &callerRef)
+int SimulationRunner::callGrompp(const CommandLine& callerRef)
{
int returnValue = 0;
#if GMX_LIB_MPI
return returnValue;
}
-int
-SimulationRunner::callGrompp()
+int SimulationRunner::callGrompp()
{
return callGrompp(CommandLine());
}
-int
-SimulationRunner::changeTprNsteps(int nsteps)
+int SimulationRunner::changeTprNsteps(int nsteps)
{
CommandLine caller;
caller.append("convert-tpr");
return gmx_convert_tpr(caller.argc(), caller.argv());
}
-int
-SimulationRunner::callNmeig()
+int SimulationRunner::callNmeig()
{
/* Conforming to style guide by not passing a non-const reference
to this function. Passing a non-const reference might make it
return gmx_nmeig(caller.argc(), caller.argv());
}
-int
-SimulationRunner::callMdrun(const CommandLine &callerRef)
+int SimulationRunner::callMdrun(const CommandLine& callerRef)
{
/* Conforming to style guide by not passing a non-const reference
to this function. Passing a non-const reference might make it
return gmx_mdrun(caller.argc(), caller.argv());
}
-int
-SimulationRunner::callMdrun()
+int SimulationRunner::callMdrun()
{
return callMdrun(CommandLine());
}
#endif
}
-MdrunTestFixtureBase::~MdrunTestFixtureBase()
-{
-}
+MdrunTestFixtureBase::~MdrunTestFixtureBase() {}
// ====
-MdrunTestFixture::MdrunTestFixture() : runner_(&fileManager_)
-{
-}
+MdrunTestFixture::MdrunTestFixture() : runner_(&fileManager_) {}
MdrunTestFixture::~MdrunTestFixture()
{