headmyshoulder / odeint-v2

odeint - solving ordinary differential equations in c++ v2
http://headmyshoulder.github.com/odeint-v2/
Other
342 stars 101 forks source link

integrate_times overshoots end point #99

Closed mariomulansky closed 11 years ago

mariomulansky commented 11 years ago

see: http://stackoverflow.com/questions/19125047

the problem is even more severe when using negative step sizes in the integrate_times routines (and probably others...), because of using std::min to calculate current stepsizes which gives the wrong results if the stepsize is negative

mariomulansky commented 11 years ago

I've also checked the other integrate routines, but std::min is used nowhere else so I think only integrate_times was affected.