FullRestartSelfTest.cpp File Reference

Classes

class  FullRestartTest
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
132 {
134  normal.setName("FullRestartSelfTest");
135  normal.setupInitialConditions();
136  normal.writeRestartFile();
137  normal.restartFile.setFileType(FileType::MULTIPLE_FILES);
138  normal.setName("FullRestartWithCounterSelfTest");
139  logger(INFO, "%", normal.restartFile.getFullName());
140  normal.writeRestartFile();
141 
143  restart.readRestartFile("FullRestartSelfTest.restart");
144  restart.setName("FullRestartSelfTestRestarted");
146  restart.write(std::cout);
147 
148  restart.readRestartFile("FullRestartWithCounterSelfTest.restart.1");
149  restart.setName("FullRestartWithCounterSelfTestRestarted");
151 }
@ MULTIPLE_FILES
each time-step will be written into/read from separate files numbered consecutively: name_....
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
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:2979
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:3043
Definition: FullRestartSelfTest.cpp:27
void write(std::ostream &os, bool writeAllParticles=true) const override
Writes all data into a restart file.
Definition: MercuryBase.cc:126
Definition: restart2.cpp:8
#define INFO(i)
Definition: mumps_solver.h:54
void normal(const Vector< double > &x, Vector< double > &normal)
Definition: free_surface_rotation.cc:65

References INFO, logger, MULTIPLE_FILES, WallFunction::normal(), DPMBase::readRestartFile(), DPMBase::setName(), MercuryBase::write(), and DPMBase::writeRestartFile().