Mercury3DRestart.cpp File Reference
#include <iostream>
#include "Mercury3DRestart.h"

Classes

class  Mercury3DRestarter
 

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
70 {
71  if (argc < 2)
72  {
73  logger(ERROR, "Please enter the name of the simulation you want to restart and, optionally, the name of the "
74  "simulation after restart");
75  }
76  Mercury3DRestarter problem;
77  problem.setSaveCount(2);
78  problem.setMaxWallTime(10);
79  problem.setClusterCommand("");
80  problem.solve(argc, argv);
81 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:53
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void setMaxWallTime(Mdouble maxWallTime)
Definition: Mercury3DRestart.h:59
void setClusterCommand(std::string clusterCommand)
Definition: Mercury3DRestart.h:49
Definition: Mercury3DRestart.cpp:31

References ERROR, logger, Mercury3DRestart::setClusterCommand(), Mercury3DRestart::setMaxWallTime(), DPMBase::setSaveCount(), and DPMBase::solve().