Numerical method to integrate an ODE. More...
#include <ODEIntegrator.h>
Public Member Functions | |
ODEIntegrator (ODE *ode) | |
Constructs the integrator. | |
virtual void | integrate (FieldWrapper &f, GReal_t x, GReal_t dx)=0 |
Performs an integration step. | |
ODE & | getODE () const |
Gets the ODE. |
Numerical method to integrate an ODE.
gridripper::odesolver::shoot::ODEIntegrator::ODEIntegrator | ( | ODE * | ode | ) | [inline] |
Constructs the integrator.
ode | the ODE |
ODE& gridripper::odesolver::shoot::ODEIntegrator::getODE | ( | ) | const [inline] |
virtual void gridripper::odesolver::shoot::ODEIntegrator::integrate | ( | FieldWrapper & | f, | |
GReal_t | x, | |||
GReal_t | dx | |||
) | [pure virtual] |
Performs an integration step.
f | variable for the intial values (input) and the result (output) | |
x | the coordinate | |
dx | the step size |
Implemented in gridripper::odesolver::shoot::method::RK2, and gridripper::odesolver::shoot::method::RK4.