Flow123d  jenkins-Flow123d-linux-release-multijob-282
linear_ode_solver.cc
Go to the documentation of this file.
1 
3 
4 #include "armadillo"
5 #include "input/accessors.hh"
6 
7 using namespace Input::Type;
8 
10  = AbstractRecord("LinearODESolver", "Solver of a linear system of ODEs.");
11 
13 :step_(0), step_changed_(true)
14 {
15 }
16 
18 {
19 }
20 
21 void LinearODESolverBase::set_system_matrix(const arma::mat& matrix)
22 {
23  system_matrix_ = matrix;
24  step_changed_ = true;
25 }
26 
28 {
29  step_ = step;
30  step_changed_ = true;
31 }
arma::mat system_matrix_
the square matrix of ODE system
static Input::Type::AbstractRecord input_type
void set_step(double step)
Sets the step of the numerical method.
Class for declaration of polymorphic Record.
Definition: type_record.hh:487
bool step_changed_
flag is true if the step has been changed
void set_system_matrix(const arma::mat &matrix)
Sets the matrix of ODE system.
double step_
the step of the numerical method