ls1-MarDyn
ls1-MarDyn molecular dynamics code
CheckpointWriter.h
1#ifndef SRC_IO_CHECKPOINTWRITER_H_
2#define SRC_IO_CHECKPOINTWRITER_H_
3
4#include <string>
5
6#include "plugins/PluginBase.h"
7
8
10public:
11
14
15
29 void readXML(XMLfileUnits& xmlconfig);
30
31 void init(ParticleContainer *particleContainer,
32 DomainDecompBase *domainDecomp, Domain *domain);
33 void endStep(
34 ParticleContainer *particleContainer,
35 DomainDecompBase *domainDecomp, Domain *domain,
36 unsigned long simstep
37 );
38 void finish(ParticleContainer *particleContainer,
39 DomainDecompBase *domainDecomp, Domain *domain);
40
42 return std::string("CheckpointWriter");
43 }
44 static PluginBase* createInstance() { return new CheckpointWriter(); }
45private:
46 std::string _outputPrefix;
47 unsigned long _writeFrequency;
48 bool _useBinaryFormat;
49 bool _incremental;
50 bool _appendTimestamp;
51};
52
53#endif // SRC_IO_CHECKPOINTWRITER_H_
Definition: CheckpointWriter.h:9
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
Method endStep will be called at the end of each time step.
Definition: CheckpointWriter.cpp:62
void readXML(XMLfileUnits &xmlconfig)
Read in XML configuration for CheckpointWriter.
Definition: CheckpointWriter.cpp:17
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method init will be called at the begin of the simulation.
Definition: CheckpointWriter.cpp:59
std::string getPluginName()
return the name of the plugin
Definition: CheckpointWriter.h:41
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method finish will be called at the end of the simulation.
Definition: CheckpointWriter.cpp:89
handle boundary region and multiple processes
Definition: DomainDecompBase.h:51
This class is used to read in the phasespace and to handle macroscopic values.
Definition: Domain.h:47
This Interface is used to get access to particles and pairs of particles.
Definition: ParticleContainer.h:69
The PluginBase class provides the interface for any kind of output/plugin classes - called "(output) ...
Definition: PluginBase.h:47
XML file with unit attributes abstraction.
Definition: xmlfileUnits.h:25
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270