![]() |
ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
|

Public Member Functions | |
| virtual | ~Task ()=default |
Setup | |
| virtual void | initialize (TaskContext< Number > &) |
| virtual void | start (TaskContext< Number > &) |
| virtual void | prepare (TaskContext< Number > &) |
Execution | |
| virtual void | execute (TaskContext< Number > &context)=0 |
| virtual void | finalize (TaskContext< Number > &) |
Checkpointing | |
| virtual void | save (boost::archive::binary_oarchive &) const |
| virtual void | load (boost::archive::binary_iarchive &) |
Information | |
| Task (const std::string &name, TaskPhase phase) | |
The interface of a Task: an operation that the Scheduler executes in a given TaskPhase of every cycle.
The Scheduler calls the functions of all active tasks in the following order:
In addition, a task stores its internal state in checkpoints with save() and load().
|
virtualdefault |
Destructor.
|
inlineprotected |
|
inlinevirtual |
Initialize the task.
Called once at the very beginning.
Reimplemented in ryujin::Logger< dim, Number >, and ryujin::ErrorEvaluation< dim, Number >.
|
inlinevirtual |
Start the computation.
Called once after all tasks have been initialized and before the first call to prepare().
Reimplemented in ryujin::Checkpointing< dim, Number >, and ryujin::Logger< dim, Number >.
|
inlinevirtual |
Prepare the task for the current mesh.
Called after start() and whenever a task of the adapt phase sets TaskContext::prepare_required.
Reimplemented in ryujin::MeshAdaptor< dim, Number >, ryujin::Logger< dim, Number >, ryujin::Simulation< HD, PD, dim, Number >, ryujin::Quantities< dim, Number >, and ryujin::VTUOutput< dim, Number >.
|
pure virtual |
Execute the task. Called in every cycle in the selected phase of the task.
Implemented in ryujin::MeshAdaptor< dim, Number >, ryujin::Checkpointing< dim, Number >, ryujin::Logger< dim, Number >, ryujin::Simulation< HD, PD, dim, Number >, ryujin::ErrorEvaluation< dim, Number >, ryujin::Quantities< dim, Number >, and ryujin::VTUOutput< dim, Number >.
|
inlinevirtual |
Finalize the task. Called once at the end.
Reimplemented in ryujin::Checkpointing< dim, Number >, ryujin::Logger< dim, Number >, and ryujin::ErrorEvaluation< dim, Number >.
|
inlinevirtual |
|
inlinevirtual |