adevs
Public Member Functions
adevs::corrected_euler Class Reference

#include <adevs_corrected_euler.h>

Inheritance diagram for adevs::corrected_euler:
adevs::ode_solver< X >

List of all members.

Public Member Functions

 corrected_euler (ode_system< X > *sys, double err_tol, double h_max)
 ~corrected_euler ()
 Destructor.
double integrate (double *q, double h_lim)
void advance (double *q, double h)

Detailed Description

This is the second order accurate RK2 method with adaptive step sizing for error control.


Constructor & Destructor Documentation

adevs::corrected_euler::corrected_euler ( ode_system< X > *  sys,
double  err_tol,
double  h_max 
)

Create an integrator that will use the specified per step error tolerance and maximum step size.

References adevs::ode_system::numVars().


Member Function Documentation

void adevs::corrected_euler::advance ( double *  q,
double  h 
) [virtual]

Advance the system through exactly h units of time.

Implements adevs::ode_solver< X >.

double adevs::corrected_euler::integrate ( double *  q,
double  h_lim 
) [virtual]

Take an integration step from state q of at most size h_lim and return the step size that was actually used. Copy the result of the integration step to q.

Implements adevs::ode_solver< X >.


The documentation for this class was generated from the following file: