I am using boost::odeint and so far I was using the runge_kutta4 stepper. Now I would like to switch to a leapfrog method, e.g. my iteration step should look like:

f(t+dt) = f(t-dt) - p * f(t)

So I need a multistep method, but I am a bit lost with the documentation and would like to get some help.

有帮助吗?

解决方案

The leap-frog is currently not implemented. But it should be easy to implement with the help of the Adam-Bashforth method. I have opened a ticket in our issue tracker: https://github.com/headmyshoulder/odeint-v2/issues/119

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top