ryujin 2.1.1 revision 955e869188d49b3c97ca7b1cf4fd9ceb0e6f46ef
|
#include <source/equation_dispatch.h>
Classes | |
struct | Signals |
Public Member Functions | |
EquationDispatch () | |
void | dispatch (const std::string ¶meter_file, const MPI_Comm &mpi_comm) |
Static Public Member Functions | |
static void | create_parameter_files () |
template<typename Callable > | |
static void | register_create_parameter_files (const Callable &callable) |
template<typename Callable > | |
static void | register_dispatch (const Callable &callable) |
Static Protected Attributes | |
Internal data structures: | |
static Signals * | signals |
Dispatcher class that calls into the right TimeLoop depending on what has been set in the parameter file.
When starting up the ryujin executable we are faced with the following difficulties:
ryujin.prm
parameter file.ryujin.prm
depend on the runtime parameters "dimension" and "equation" themselves.We thus first read in three parameters from the parameter file:
and then create an instance of the correct TimeLoop class, that takes the dimension and equation as template parameters.
Definition at line 53 of file equation_dispatch.h.
|
inline |
Definition at line 56 of file equation_dispatch.h.
|
inlinestatic |
Call create_parameter_files() for all registered equations.
Definition at line 70 of file equation_dispatch.h.
References ryujin::EquationDispatch::Signals::create_parameter_files, ryujin::dave, and signals.
|
inlinestatic |
Register a create_parameter_files() callback.
Definition at line 86 of file equation_dispatch.h.
References ryujin::EquationDispatch::Signals::create_parameter_files, and signals.
Referenced by ryujin::Dispatch< Description, Number >::Dispatch().
|
inline |
Call dispatch() for all registered equations.
Definition at line 98 of file equation_dispatch.h.
References ryujin::dave, ryujin::EquationDispatch::Signals::dispatch, and signals.
|
inlinestatic |
Register a create_parameter_files() callback.
Definition at line 135 of file equation_dispatch.h.
References ryujin::EquationDispatch::Signals::dispatch, and signals.
Referenced by ryujin::Dispatch< Description, Number >::Dispatch().
|
staticprotected |
Definition at line 169 of file equation_dispatch.h.
Referenced by create_parameter_files(), dispatch(), register_create_parameter_files(), and register_dispatch().