문제

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