1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: application option to save graph

This commit is contained in:
Antonin Portelli 2018-08-14 20:03:53 +01:00
parent 08c47328ba
commit c4115544a5
2 changed files with 7 additions and 1 deletions

View File

@ -110,6 +110,11 @@ void Application::run(void)
LOG(Message) << "RUN ID '" << getPar().runId << "'" << std::endl;
vm().setRunId(getPar().runId);
vm().printContent();
if (!getPar().graphFile.empty())
{
makeFileDir(getPar().graphFile, env().getGrid());
vm().dumpModuleGraph(getPar().graphFile);
}
env().printContent();
schedule();
printSchedule();

View File

@ -55,7 +55,8 @@ public:
GRID_SERIALIZABLE_CLASS_MEMBERS(GlobalPar,
TrajRange, trajCounter,
VirtualMachine::GeneticPar, genetic,
std::string, runId);
std::string, runId,
std::string, graphFile);
};
public:
// constructors