The driver level is a high level wrapper that combines the evolution, control and stepper objects for easy use.
This function returns a pointer to a newly allocated instance of a driver object, with ODE system sys and stepper type T. hstart defines the initial step size. epsabs and epsrel are the absolute and relative error tolerances for all components, respectively.
This function is otherwise similar to
gsl_odeiv2_driver_alloc_y_new
, but it allows definition of the desired error level D_i similarly togsl_odeiv2_control_scaled_new
with formula
The function sets a minimum for allowed step size hmin for driver D. Default value is 0.
The function sets a maximum for allowed step size hmax for driver D. Default value is GSL_DBL_MAX.
The function sets a maximum for allowed number of steps nmin for driver D. Default value of 0 sets no limit for steps.
This function evolves the driver system D from t to t1. Initially vector y should contain the values of dependent variables at point t. If the function is unable to complete the calculation, an error code from
gsl_odeiv2_evolve_apply
is returned, and t and y contain the values from last successful step. In case maximum number of steps is reached, a value of GSL_EMAXITER is returned. If the step size drops below a minimum value set withgsl_odeiv2_driver_set_hmin
, the function returns with GSL_ENOPROG.