#include <gsl_astep.h>
To modify the ODE stepper which is used, use the adapt_step::set_step().
Default template arguments
param_t
- multi_functfunc_t
- ode_functvec_t
- ovector_basealloc_vec_t
- ovectoralloc_t
- ovector_alloc Definition at line 244 of file gsl_astep.h.
Public Member Functions | |
virtual int | astep_derivs (double &x, double &h, double xmax, size_t n, vec_t &y, vec_t &dydx, vec_t &yerr, param_t &pa, func_t &derivs) |
Make an adaptive integration step of the system derivs with derivatives. | |
virtual int | astep (double &x, double &h, double xmax, size_t n, vec_t &y, vec_t &dydx_out, vec_t &yerr, param_t &pa, func_t &derivs) |
Make an adaptive integration step of the system derivs . | |
Data Fields | |
gsl_ode_control< vec_t > | con |
Control specification. | |
Protected Member Functions | |
int | evolve_apply (double &t, double &h, double t1, size_t nvar, vec_t &y, vec_t &dydx, vec_t &yout2, vec_t &yerr, vec_t &dydx_out2, param_t &pa, func_t &derivs) |
Apply the evolution for the next adaptive step. | |
Protected Attributes | |
alloc_t | ao |
Memory allocator for objects of type alloc_vec_t . | |
alloc_vec_t | yout |
Temporary storage for yout. | |
alloc_vec_t | dydx_int |
Internal storage for dydx. | |
double | last_step |
The size of the last step. | |
unsigned long int | count |
The number of steps. | |
unsigned long int | failed_steps |
The number of failed steps. | |
size_t | msize |
The size of the allocated vectors. |
virtual int astep | ( | double & | x, | |
double & | h, | |||
double | xmax, | |||
size_t | n, | |||
vec_t & | y, | |||
vec_t & | dydx_out, | |||
vec_t & | yerr, | |||
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, dydx_out
contains the derivative at the end of the step, and yerr
contains the estimated error at the end of the step.
If the system derivs
or the base stepper return a non-zero value, the adaptive step is aborted and y
is unmodified. The error handler is never called.
Implements adapt_step.
Definition at line 423 of file gsl_astep.h.
virtual int astep_derivs | ( | double & | x, | |
double & | h, | |||
double | xmax, | |||
size_t | n, | |||
vec_t & | y, | |||
vec_t & | dydx, | |||
vec_t & | yerr, | |||
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, dydx
contains the derivative at the end of the step, and yerr
contains the estimated error at the end of the step.
If the base stepper returns a non-zero value, the step is aborted and y
is unmodified. The error handler is never called.
Implements adapt_step.
Definition at line 376 of file gsl_astep.h.
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page