Time integrate_n_steps( Stepper stepper , System system , const State &start_state , Time start_time , Time dt , size_t num_of_steps ) { return integrate_n_steps(stepper, system, start_state, start_time, dt, num_of_steps, null_observer()); }
size_t integrate_const( Stepper stepper , System system , const State &start_state , Time start_time , Time end_time , Time dt , Observer observer ) { // we want to get as fast as possible to the end if( boost::is_same< null_observer , Observer >::value ) { return detail::integrate_adaptive( stepper , system , start_state , start_time , end_time , dt , observer , typename Stepper::stepper_category() ); } else { const size_t steps = static_cast<size_t>( (end_time-start_time)/dt ); integrate_n_steps( stepper , system , start_state , start_time , dt , steps , observer ); return steps; } }