The documentation states "integrate_const returns the number of steps performed during the integration.".
However, if integrate_const( stepper , system , x0 , t0 , t1 , dt , observer ) is called with a controlled_stepper, roughly (t1-t0)/dt is returned, whatever the actual number of steps is. This is obvious from boost/numeric/odeint/integrate/detail/integrate_const.hpp.
The documentation states "integrate_const returns the number of steps performed during the integration.".
However, if integrate_const( stepper , system , x0 , t0 , t1 , dt , observer ) is called with a controlled_stepper, roughly (t1-t0)/dt is returned, whatever the actual number of steps is. This is obvious from boost/numeric/odeint/integrate/detail/integrate_const.hpp.
This patch fixes the problem: http://pastebin.com/nKVwmAdM