ryujin 2.1.1 revision 955e869188d49b3c97ca7b1cf4fd9ceb0e6f46ef
Classes | Public Member Functions | Static Public Member Functions | List of all members
ryujin::EquationDispatch Class Reference

#include <source/equation_dispatch.h>

Inheritance diagram for ryujin::EquationDispatch:
Inheritance graph
[legend]
Collaboration diagram for ryujin::EquationDispatch:
Collaboration graph
[legend]

Classes

struct  Signals
 

Public Member Functions

 EquationDispatch ()
 
void dispatch (const std::string &parameter_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 Signalssignals
 

Detailed Description

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:

We thus first read in three parameters from the parameter file:

subsection B - Equation
set dimension = ...
set equation = ...
end

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.

Constructor & Destructor Documentation

◆ EquationDispatch()

ryujin::EquationDispatch::EquationDispatch ( )
inline

Definition at line 56 of file equation_dispatch.h.

Member Function Documentation

◆ create_parameter_files()

static void ryujin::EquationDispatch::create_parameter_files ( )
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.

◆ register_create_parameter_files()

template<typename Callable >
static void ryujin::EquationDispatch::register_create_parameter_files ( const Callable &  callable)
inlinestatic

◆ dispatch()

void ryujin::EquationDispatch::dispatch ( const std::string &  parameter_file,
const MPI_Comm &  mpi_comm 
)
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.

◆ register_dispatch()

template<typename Callable >
static void ryujin::EquationDispatch::register_dispatch ( const Callable &  callable)
inlinestatic

Member Data Documentation

◆ signals

Signals* ryujin::EquationDispatch::signals
staticprotected

The documentation for this class was generated from the following file: