odeint: how to solve ODE as you go without deciding upfront what the interval is?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

odeint: how to solve ODE as you go without deciding upfront what the interval is?

Boost - Users mailing list
The function 'integrate' solves ODE for a pre-defined interval of time.


What if I don't know what the interval is? I just need a few values, and
then I would like to decide if I need more values, and when to stop.

I don't want to just solve for some arbitrarily large interval, because
this would waste CPU.

On the other hand, choosing the shorter original interval and then
continuing would introduce unnecessary errors if one would do this too
many times.


It seems like either the 'observer' function should have another
argument: 'stop', or the interface should allow continuation.


Yuri


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users