boost::numeric::odeint::integrate_n_steps — Integrates the ODE with constant step size.
// In header: <boost/numeric/odeint/integrate/integrate_n_steps.hpp> template<typename Stepper, typename System, typename State, typename Time, typename Observer> Time integrate_n_steps(Stepper stepper, System system, State & start_state, Time start_time, Time dt, size_t num_of_steps, Observer observer);
This function is similar to integrate_const. The observer is called at equidistant time intervals t0 + n*dt. If the Stepper is a normal stepper without step size control, dt is also used for the numerical scheme. If a ControlledStepper is provided, the algorithm might reduce the step size to meet the error bounds, but it is ensured that the observer is always called at equidistant time points t0 + n*dt. If a DenseOutputStepper is used, the step size also may vary and the dense output is used to call the observer at equidistant time points. The final integration time is always t0 + num_of_steps*dt.
Parameters: |
|
||||||||||||||
Returns: |
The number of steps performed. |