SPH
|
Public Member Functions | |
virtual void | onSetUp (const Storage &, Statistics &) override |
Called right before the run starts, i.e. after initial conditions are set up. More... | |
virtual void | onTimeStep (const Storage &, Statistics &) override |
Called every timestep. More... | |
virtual bool | shouldAbortRun () const override |
Returns whether current run should be aborted or not. More... | |
![]() | |
virtual | ~Polymorphic () |
|
inlineoverridevirtual |
Called right before the run starts, i.e. after initial conditions are set up.
Implements IRunCallbacks.
|
inlineoverridevirtual |
Called every timestep.
This is a blocking call, run is paused until the function returns. This allows to safely access the storage and run statistics. Note that accessing the storage from different thread during run is generally unsafe, as the storage can be resized during the run.
Implements IRunCallbacks.
|
inlineoverridevirtual |
Returns whether current run should be aborted or not.
Can be called any time.
Implements IRunCallbacks.