gmx::TextWriter::writeFileFromString(ndxFileName_, ndxString);
}
+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 useStringAsMdpFile(const std::string &mdpString);
//! Use a string as -n input to grompp
void useStringAsNdxFile(const char *ndxString);
+ //! Use a standard .top and .g96 file as input to grompp
+ void useTopG96AndNdxFromDatabase(const std::string &name);
//! Use a standard .top and .gro file as input to grompp
void useTopGroAndNdxFromDatabase(const std::string &name);
//! Use a standard .gro file as input to grompp
mdpFieldValues.insert(MdpField("compressibility", "5e-5"));
mdpFieldValues.insert(MdpField("constraints", "none"));
mdpFieldValues.insert(MdpField("other", ""));
+ mdpFieldValues.insert(MdpField("rcoulomb", "0.7"));
+ mdpFieldValues.insert(MdpField("rvdw", "0.7"));
return mdpFieldValues;
}
* energies were not computed with those from rerun on the same
* coordinates.
*/
- return formatString(R"(rcoulomb = 0.7
- rvdw = 0.7
+ return formatString(R"(rcoulomb = %s
+ rvdw = %s
rlist = -1
bd-fric = 1000
verlet-buffer-tolerance = 0.000001
lincs-order = 2
lincs-iter = 5
%s)",
+ mdpFieldValues.at("rcoulomb").c_str(),
+ mdpFieldValues.at("rvdw").c_str(),
mdpFieldValues.at("nsteps").c_str(),
mdpFieldValues.at("integrator").c_str(),
mdpFieldValues.at("tcoupl").c_str(),