79 if (argc>1) {
name=argv[1]; argv++; argc--;}
else name=
"../ini_statistics/H10A22L1M0.5B0.5";
82 if (argc>1) {tint=atof(argv[1]); argv++; argc--; cout <<
"tint=" << tint << endl;}
85 cout <<
"restart data: " <<
name <<
".restart" << endl;
88 problem.load_restart_data();
94 cout <<
"old name: " << problem.
getName() << endl;
95 size_t found=
name.find_last_of(
"/\\");
97 cout <<
"new name: " << problem.
getName() << endl;
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
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
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:399
Mdouble getTime() const
Returns the current simulation time.
Definition: DPMBase.cc:808
File dataFile
An instance of class File to handle in- and output into a .data file.
Definition: DPMBase.h:1478
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1493
virtual void writeRestartFile()
Stores all the particle data for current save time step to a "restart" file, which is a file simply i...
Definition: DPMBase.cc:2942
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
void readStatArguments(int argc, char *argv[])
void setCGTimeMin(Mdouble t)
Definition: StatisticsVector.h:223
void setNX(int new_)
Definition: StatisticsVector.h:127
void setCGWidth(Mdouble w)
Set CG variables w2 and CG_invvolume.
Definition: StatisticsVector.h:317
void setDoPeriodicWalls(bool new_)
Definition: StatisticsVector.h:563
void setNY(int new_)
Definition: StatisticsVector.h:143
Definition: statXY.cpp:30
std::string name
Definition: MercuryProb.h:48