15 b1 = 1.0/2; b2 = 1.0/2;
18void OdeTrapz::step_ (
double dt) {
Base class implementing solver functions with adaptive time steps.
unsigned long neq_
number of equations in the system of ODEs
std::string method_
the "name" of the solver/method, as in "Euler" or "RK4"
double * sol_
array for the solution, changing over time
void ode_fun_(double *solin, double *fout)
wrapper, calls ode_fun() and increases the neval counter by one
Base class providing space for temporary solutions moving through RK stages.
double * soltemp_
temporary solution vector
Provides space for stage slope values, an array of arrays for k values.
double ** k_
stage evaluations
OdeTrapz(unsigned long neq)
constructs