You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I misunderstand something crucial, but I tried to integrate a time varying ODE and the result is just wrong. When I looked at the value t that I get, it seems to be always the timestep taken, not the total time of the current integration step.
Example:
using GeometricIntegrators
functioneo(xdot, t, x, params)
println(t)
xdot[1] = x[1]
end
prob =ODEProblem(eo, (0.0, 1.0), 0.1, [3.0])
int =Integrator(prob, TableauRK4())
integrate(prob, int)
This is curious! From what I can see (a) you are doing everything correctly and (b) there is no obvious issue in the integrator causing this problem. I may have an idea, though. I will investigate this...
This is fixed in the master branch for most Runge-Kutta methods (not yet for more special integrators). This was a rather nasty thing. I guess we don't have tests for time-dependent problems...
Maybe I misunderstand something crucial, but I tried to integrate a time varying ODE and the result is just wrong. When I looked at the value
t
that I get, it seems to be always the timestep taken, not the total time of the current integration step.Example:
prints:
The text was updated successfully, but these errors were encountered: