ls1-MarDyn
ls1-MarDyn molecular dynamics code
MPI_IOCheckpointWriter.h
1/*
2 * MPI_IOWriter.h
3 *
4 * Created on: Aug 18, 2014
5 * Author: andal
6 */
7
8#ifndef MPI_IOCHECKPOINTWRITER_H_
9#define MPI_IOCHECKPOINTWRITER_H_
10
11#include <string>
12
13#include "plugins/PluginBase.h"
14
16public:
17
19
29 MPI_IOCheckpointWriter(unsigned long writeFrequency, std::string outputPrefix, bool incremental);
31
32 void readXML(XMLfileUnits& xmlconfig);
33
34 void init(ParticleContainer *particleContainer,
35 DomainDecompBase *domainDecomp, Domain *domain);
36 void endStep(
37 ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain,
38 unsigned long simstep
39 );
40 void finish(ParticleContainer *particleContainer,
41 DomainDecompBase *domainDecomp, Domain *domain);
42
43 void handle_error(int i);
44
46 return std::string("MPI_IOCheckpointWriter");
47 }
48 static PluginBase* createInstance() { return new MPI_IOCheckpointWriter(); }
49private:
50 std::string _outputPrefix;
51 unsigned long _writeFrequency;
52 bool _incremental;
53 bool _appendTimestamp;
54
55};
56
57#endif /* MPI_IOCHECKPOINTWRITER_H_ */
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
Definition: MPI_IOCheckpointWriter.h:15
void readXML(XMLfileUnits &xmlconfig)
Method readXML will be called once for each plugin section in the input file.
Definition: MPI_IOCheckpointWriter.cpp:50
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method finish will be called at the end of the simulation.
Definition: MPI_IOCheckpointWriter.cpp:424
std::string getPluginName()
return the name of the plugin
Definition: MPI_IOCheckpointWriter.h:45
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method init will be called at the begin of the simulation.
Definition: MPI_IOCheckpointWriter.cpp:72
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
Method endStep will be called at the end of each time step.
Definition: MPI_IOCheckpointWriter.cpp:77
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