restart2.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticFrictionSpecies.h>
#include "Mercury2D.h"

Classes

class  restart
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
61 {
62  restart problem;
63  problem.setName("c3d");
64  problem.readRestartFile();//load_restart_data();
65 
66  problem.solve();
67 
68  problem.write(std::cout,false);
69  problem.writeRestartFile();
70 }
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
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 solve()
The work horse of the code.
Definition: DPMBase.cc:4270
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
void write(std::ostream &os, bool writeAllParticles=true) const override
Writes all data into a restart file.
Definition: MercuryBase.cc:147
Definition: restart2.cpp:29

References DPMBase::readRestartFile(), DPMBase::setName(), DPMBase::solve(), MercuryBase::write(), and DPMBase::writeRestartFile().