|
OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
|
A base class for managing simulations using IPPL. More...
#include <BaseManager.h>


Public Member Functions | |
| BaseManager ()=default | |
| virtual | ~BaseManager ()=default |
| virtual void | pre_run () |
| A method that should be used for setting up the simulation. More... | |
| virtual void | pre_step () |
| A method that should be used for preparation before perfoming a step of simulation. More... | |
| virtual void | post_step () |
| A method that should be used after perfoming a step of simulation. More... | |
| virtual void | advance ()=0 |
| A method that should be used to execute/advance a step of simulation. More... | |
| void | run (int nt) |
| The main for loop fro running a simulation. More... | |
A base class for managing simulations using IPPL.
The BaseManager class provides a basic structure for running simulations with common steps.
Definition at line 14 of file BaseManager.h.
|
default |
|
virtualdefault |
|
pure virtual |
A method that should be used to execute/advance a step of simulation.
In a derived class, the user must override this method to implement their time integration method for solving the considered governing equation.
Implemented in PartBunch< PLayout, T, Dim >.
Referenced by run().
|
inlinevirtual |
A method that should be used after perfoming a step of simulation.
Derived classes can override this method to dump data, increment time, etc. The default implementation does nothing.
Definition at line 44 of file BaseManager.h.
Referenced by run().
|
inlinevirtual |
A method that should be used for setting up the simulation.
Derived classes can override this method to allocate memory, initialize variables, etc. The default implementation does nothing.
Reimplemented in PartBunch< PLayout, T, Dim >.
Definition at line 25 of file BaseManager.h.
|
inlinevirtual |
A method that should be used for preparation before perfoming a step of simulation.
The default implementation does nothing.
Definition at line 35 of file BaseManager.h.
Referenced by run().
|
inline |
The main for loop fro running a simulation.
This method performs a simulation run by calling pre_step, advance, and post_step in a loop for a specified number of time steps.
| nt | The number of time steps to run the simulation. |
Definition at line 63 of file BaseManager.h.
References advance(), post_step(), and pre_step().
