groFileName_(),
fullPrecisionTrajectoryFileName_(),
ndxFileName_(),
- mdpInputFileName_(fileManager->getTemporaryFilePath("input.mdp")),
mdpOutputFileName_(fileManager->getTemporaryFilePath("output.mdp")),
tprFileName_(fileManager->getTemporaryFilePath(".tpr")),
logFileName_(fileManager->getTemporaryFilePath(".log")),
int
SimulationRunner::callGromppOnThisRank(const CommandLine &callerRef)
{
- gmx::TextWriter::writeFileFromString(mdpInputFileName_, mdpInputContents_);
+ const std::string mdpInputFileName(fileManager_.getTemporaryFilePath("input.mdp"));
+ gmx::TextWriter::writeFileFromString(mdpInputFileName, mdpInputContents_);
CommandLine caller;
caller.append("grompp");
caller.merge(callerRef);
- caller.addOption("-f", mdpInputFileName_);
+ caller.addOption("-f", mdpInputFileName);
caller.addOption("-n", ndxFileName_);
caller.addOption("-p", topFileName_);
caller.addOption("-c", groFileName_);
std::string reducedPrecisionTrajectoryFileName_;
std::string groOutputFileName_;
std::string ndxFileName_;
- 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
+ //! What will be written into a temporary mdp file before the grompp call
std::string mdpInputContents_;
private: