Flow123d
jenkins-Flow123d-linux-release-multijob-282
|
Template class of the linear ODE solver. More...
#include <linear_ode_solver.hh>
Public Member Functions | |
LinearODESolver () | |
virtual | ~LinearODESolver () |
virtual void | update_solution (arma::mat &init_vecs, arma::mat &output_vecs, const std::vector< unsigned int > &mask=std::vector< unsigned int >(0)) override |
Updates solution of the system with different initial vectors. More... | |
Public Member Functions inherited from LinearODESolverBase | |
LinearODESolverBase () | |
virtual | ~LinearODESolverBase () |
void | set_system_matrix (const arma::mat &matrix) |
Sets the matrix of ODE system. More... | |
void | set_step (double step) |
Sets the step of the numerical method. More... | |
virtual void | update_solution (arma::vec &init_vec, arma::vec &output_vec)=0 |
Updates solution of the ODEs system. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from LinearODESolverBase | |
static Input::Type::AbstractRecord | input_type = AbstractRecord("LinearODESolver", "Solver of a linear system of ODEs.") |
Protected Attributes inherited from LinearODESolverBase | |
arma::mat | system_matrix_ |
the square matrix of ODE system More... | |
arma::vec | rhs_ |
the column vector of RHS values (not used currently) More... | |
double | step_ |
the step of the numerical method More... | |
bool | step_changed_ |
flag is true if the step has been changed More... | |
Template class of the linear ODE solver.
It provides a common method update_solution
which can compute the same system of ODEs with different initial vectors at once.
This class represents the Curiously Recurring Template Pattern (CRTP). Therefore, the method update_solution of the template called inside update_solution
using static_cast is not a virtual one.
Definition at line 59 of file linear_ode_solver.hh.
|
inline |
Definition at line 62 of file linear_ode_solver.hh.
|
inlinevirtual |
Definition at line 63 of file linear_ode_solver.hh.
|
overridevirtual |
Updates solution of the system with different initial vectors.
See the base class member documentation.
Implements LinearODESolverBase.
Definition at line 76 of file linear_ode_solver.hh.