File monitor.hxx#
Functions
-
class Monitor#
- #include <monitor.hxx>
Monitor baseclass for the Solver
Can be called ether with a specified frequency, or with the frequency of the BOUT++ output monitor.
Subclassed by BoutMonitor, PhysicsModel::PhysicsModelMonitor
Public Functions
-
inline Monitor(BoutReal timestep_ = -1)#
A
timestep_
of -1 defaults to the the frequency of the BOUT++ output monitor
-
virtual ~Monitor() = default#
-
virtual int call(Solver *solver, BoutReal time, int iter, int nout) = 0#
Callback function for the solver, called after timestep_ has passed
- Parameters:
solver – [in] The solver calling this monitor
time – [in] The current simulation time
iter – [in] The current simulation iteration
nout – [in] The total number of iterations for this simulation
- Returns:
non-zero if simulation should be stopped
-
inline virtual void cleanup()#
Callback function for when a clean shutdown is initiated.
Protected Functions
Private Members
Friends
- friend class Solver
-
inline Monitor(BoutReal timestep_ = -1)#