32 const std::string manual =
"Enter the prefix of the simulation you want to restart\n"
33 " and, optionally, the prefix of the output files.\n"
34 " e.g. restart2data input output\n"
35 " reads from input.restart and writes to output.data\n";
39 std::string in = argv[1];
41 if (in.find(
".restart")==-1) in +=
".restart";
45 bool prefixGiven = argc>=3 && argv[2][0]!=
'-';
46 char* out = prefixGiven?argv[2]:argv[1];
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
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 computeContactPoints()
Definition: CGHandler.cc:194
File eneFile
An instance of class File to handle in- and output into a .ene file.
Definition: DPMBase.h:1488
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1483
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
File dataFile
An instance of class File to handle in- and output into a .data file.
Definition: DPMBase.h:1478
void writeEneFile()
Definition: DPMBase.cc:2961
virtual void writeXBallsScript() const
This writes a script which can be used to load the xballs problem to display the data just generated.
CGHandler cgHandler
Object of the class cgHandler.
Definition: DPMBase.h:1473
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1493
void writeFStatFile()
Definition: DPMBase.cc:2971
void writeDataFile()
Definition: DPMBase.cc:2952
bool readRestartFile(ReadOptions opt=ReadOptions::ReadAll)
Reads all the particle data corresponding to a given, existing . restart file (for more details regar...
Definition: DPMBase.cc:3006
const std::string getFullName() const
Also allows to access the file name, however with additional information which is the file counter,...
Definition: File.cc:170
void setCounter(unsigned int counter)
Allows the user to set the file counter according to his need. Sets File::counter_.
Definition: File.cc:231
unsigned int getCounter() const
In case of multiple files, File::getCounter() returns the the number (FILE::Counter_) of the next fil...
Definition: File.cc:223
This adds on the hierarchical grid code for 3D problems.
Definition: Mercury3D.h:37