/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017,2018, 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.
void
SimulationRunner::useStringAsMdpFile(const std::string &mdpString)
{
- gmx::TextWriter::writeFileFromString(mdpInputFileName_, mdpString);
+ mdpInputContents_ = mdpString;
}
void
int
SimulationRunner::callGromppOnThisRank(const CommandLine &callerRef)
{
+ gmx::TextWriter::writeFileFromString(mdpInputFileName_, mdpInputContents_);
+
CommandLine caller;
caller.append("grompp");
caller.merge(callerRef);
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2013,2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017,2018, 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.
std::string reducedPrecisionTrajectoryFileName_;
std::string groOutputFileName_;
std::string ndxFileName_;
- std::string mdpInputFileName_;
+ std::string mdpInputFileName_; /**< This file is temporary and will be overwritten with mdpInputContents_ when calling grompp.
+ * TODO: remove this when the multisim tests use -multidir.
+ */
std::string mdpOutputFileName_;
std::string tprFileName_;
std::string logFileName_;
std::string swapFileName_;
int nsteps_;
//@}
+ //! What will be written into mdpInputFileName_ before the grompp call
+ std::string mdpInputContents_;
private:
TestFileManager &fileManager_;