#include <adapt_step.h>
The adaptive stepper is based on gsl_rkck unless otherwise specified in set_step().
Definition at line 42 of file adapt_step.h.
Public Member Functions | |
adapt_step () | |
virtual | ~adapt_step () |
virtual int | astep (double &x, double &h, double xmax, size_t n, vec_t &y, param_t &pa, func_t &derivs) |
Make an adaptive integration step of the system derivs . | |
virtual int | astep_derivs (double &x, double &h, double xmax, size_t n, vec_t &y, vec_t &dydx, param_t &pa, func_t &derivs) |
Make an adaptive integration step of the system derivs with derivatives. | |
int | set_step (odestep< param_t, func_t, vec_t > &step) |
Set stepper. | |
Data Fields | |
int | verbose |
Set output level. | |
gsl_rkck< param_t, func_t, vec_t, alloc_vec_t, alloc_t > | def_step |
The default stepper. | |
Protected Attributes | |
odestep< param_t, func_t, vec_t > * | stepp |
Pointer to the stepper being used. |
virtual int astep | ( | double & | x, | |
double & | h, | |||
double | xmax, | |||
size_t | n, | |||
vec_t & | y, | |||
param_t & | pa, | |||
func_t & | derivs | |||
) | [inline, virtual] |
Make an adaptive integration step of the system derivs
.
This attempts to take a step of size h
from the point x
of an n-dimensional
system derivs
starting with y
. On exit, x
and y
contain the new values at the end of the step, h
contains the size of the step.
Reimplemented in gsl_astep, and nonadapt_step.
Definition at line 62 of file adapt_step.h.
virtual int astep_derivs | ( | double & | x, | |
double & | h, | |||
double | xmax, | |||
size_t | n, | |||
vec_t & | y, | |||
vec_t & | dydx, | |||
param_t & | pa, | |||
func_t & | derivs | |||
) | [inline, virtual] |
Make an adaptive integration step of the system derivs
with derivatives.
This attempts to take a step of size h
from the point x
of an n-dimensional
system derivs
starting with y
and given the initial derivatives dydx
. On exit, x
, y
and dydx
contain the new values at the end of the step, h
contains the size of the step.
Reimplemented in gsl_astep, and nonadapt_step.
Definition at line 80 of file adapt_step.h.
int set_step | ( | odestep< param_t, func_t, vec_t > & | step | ) | [inline] |
Set stepper.
This sets the stepper for use in the adaptive step routine. If no stepper is specified, then the default (gsl_rkck) is used.
Definition at line 99 of file adapt_step.h.