Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59210 - sandbox/odeint/boost/numeric/odeint
From: mario.mulansky_at_[hidden]
Date: 2010-01-21 17:21:33


Author: mariomulansky
Date: 2010-01-21 17:21:32 EST (Thu, 21 Jan 2010)
New Revision: 59210
URL: http://svn.boost.org/trac/boost/changeset/59210

Log:
now integration stops exactly at end_time
Text files modified:
   sandbox/odeint/boost/numeric/odeint/integrator_adaptive_stepsize.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/odeint/boost/numeric/odeint/integrator_adaptive_stepsize.hpp
==============================================================================
--- sandbox/odeint/boost/numeric/odeint/integrator_adaptive_stepsize.hpp (original)
+++ sandbox/odeint/boost/numeric/odeint/integrator_adaptive_stepsize.hpp 2010-01-21 17:21:32 EST (Thu, 21 Jan 2010)
@@ -46,6 +46,7 @@
         
         while( t < end_time )
         {
+ if( (end_time - t) < dt ) dt = end_time - t;
             // do a controlled step
             result = stepper.try_step( system, state, t, dt_ );
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk