ls1-MarDyn
ls1-MarDyn molecular dynamics code
LoadImbalanceThroughSleepPlugin.h
1#pragma once
2
3#include "PluginBase.h"
4
14public:
24 void readXML(XMLfileUnits &xmlconfig) override;
25
26 void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override{};
27
28 void afterForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp,
29 unsigned long simstep) override;
30
31 void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain,
32 unsigned long simstep) override;
33
34 void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override{};
35
36 std::string getPluginName() override{return "LoadImbalanceThroughSleepPlugin";}
37
38 static PluginBase* createInstance() { return new LoadImbalanceThroughSleepPlugin(); }
39
40private:
41 bool _varyingSteps{true};
42 int _varyingStepsSleepTime{200};
43};
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: LoadImbalanceThroughSleepPlugin.h:13
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep) override
Method endStep will be called at the end of each time step.
Definition: LoadImbalanceThroughSleepPlugin.cpp:23
std::string getPluginName() override
return the name of the plugin
Definition: LoadImbalanceThroughSleepPlugin.h:36
void readXML(XMLfileUnits &xmlconfig) override
Definition: LoadImbalanceThroughSleepPlugin.cpp:10
void afterForces(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, unsigned long simstep) override
Method afterForces will be called after forcefields have been applied no sitewise Forces can be appli...
Definition: LoadImbalanceThroughSleepPlugin.cpp:15
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method finish will be called at the end of the simulation.
Definition: LoadImbalanceThroughSleepPlugin.h:34
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method init will be called at the begin of the simulation.
Definition: LoadImbalanceThroughSleepPlugin.h:26
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