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
With ODEProblem, the timespan can be set to be infinite, and this is useful for the iterator interface. For example, this feature is used in DynamicalSystemsBase.jl for creating a tangent integrator. However, doing this with SDEProblem results in the simulation time being set to Inf after one time step.
Example:
f(u, p, t) = [1.0]
p = SDEProblem(f, f, [1.0], (0.0, Inf))
i = init(p, EM(); dt=.02)
Then, running step!(i) results in i.t becoming Inf.
The text was updated successfully, but these errors were encountered:
in integrator_utils.jl. When tstop is Inf, 100eps(max(integrator.t,tstop)) evaluates to NaN, and since a comparison with NaN is false, it should take the integrator.t = ttmp branch. But since @fastmath isn't supposed to deal with NaNs it gives an unexpected result on my end:
With
ODEProblem
, the timespan can be set to be infinite, and this is useful for the iterator interface. For example, this feature is used in DynamicalSystemsBase.jl for creating a tangent integrator. However, doing this withSDEProblem
results in the simulation time being set toInf
after one time step.Example:
Then, running
step!(i)
results ini.t
becomingInf
.The text was updated successfully, but these errors were encountered: