8#ifndef SRC_PLUGINS_INMEMORYCHECKPOINTING_H_
9#define SRC_PLUGINS_INMEMORYCHECKPOINTING_H_
11#include "PluginBase.h"
12#include "molecules/MoleculeForwardDeclaration.h"
51 Domain* domain,
unsigned long simstep);
64 void addMolecule(
const Molecule& m) {
65 _molecules.push_back(m);
68 double getCurrentTime()
const {
72 void setCurrentTime(
double currentTime) {
73 _currentTime = currentTime;
76 const std::array<double, 3>& getBoxDims()
const {
80 void setBoxDims(
const std::array<double, 3>& boxDims) {
84 unsigned long getGlobalNumberOfMolecules()
const {
85 return _globalNumberOfMolecules;
88 void setGlobalNumberOfMolecules(
unsigned long globalNumberOfMolecules) {
89 _globalNumberOfMolecules = globalNumberOfMolecules;
92 double getTemperature()
const {
96 void setTemperature(
double temperature) {
97 _temperature = temperature;
100 int getRank()
const {
104 void setRank(
int rank) {
108 const std::vector<Molecule>& getMolecules()
const {
112 void clearMolecules() {
117 std::vector<Molecule> _molecules;
122 unsigned long _globalNumberOfMolecules;
124 std::array<double, 3> _boxDims;
130 unsigned long _writeFrequency;
131 unsigned long _restartAtIteration;
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
FullMolecule modeled as LJ sphere with point polarities.
Definition: FullMolecule.h:18
Definition: InMemoryCheckpointing.h:62
Definition: InMemoryCheckpointing.h:18
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method finish will be called at the end of the simulation.
Definition: InMemoryCheckpointing.h:53
void readXML(XMLfileUnits &xmlconfig)
Method readXML will be called once for each plugin section in the input file.
Definition: InMemoryCheckpointing.cpp:19
void beforeEventNewTimestep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep)
restarting takes place here
Definition: InMemoryCheckpointing.cpp:29
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep)
Method endStep will be called at the end of each time step.
Definition: InMemoryCheckpointing.cpp:63
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain)
Method init will be called at the begin of the simulation.
Definition: InMemoryCheckpointing.h:23
void beforeForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep)
Method beforeForces will be called before forcefields have been applied no alterations w....
Definition: InMemoryCheckpointing.h:36
std::string getPluginName()
return the name of the plugin
Definition: InMemoryCheckpointing.h:56
void afterForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep)
writing takes place here
Definition: InMemoryCheckpointing.h:44
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