Closed jarroyoe closed 2 years ago
Thanks, this is a bug in OrdinaryDiffEq.jl. Can you please use this MWE and open an issue there?
using OrdinaryDiffEq, StaticArrays
function eq(N,p,t)
dN1 = ((N[2]*N[3]) / (1.0 + N[2]^2))
dN2 = ((N[3]*N[2]) / (1.0 + N[3]^2)) - ((N[2]*N[3]) / (1.0 + N[2]^2))
dN3 = N[3]*(1.0 - N[3]) - ((N[3]*N[2]) / (1.0 + N[3]^2))
return SVector{3}(dN1,dN2,dN3)
end
system = ODEProblem(eq,@SVector([0.0,0.0,0.0]), (0.0, 100.0), nothing)
integ = init(system, Vern9(); reltol = 1e-16, abstol = 1e-16)
step!(integ) # works
reinit!(integ, [0.0, 0, 0]) # doesn't
reinit!(integ, @SVector([0.0, 0, 0])) # also doesn't
The reason this works in other colleague's computres is that they haven't updated. This piece of code 100% worked in previous package versions so some kind of code change in DiffEq broke reinit!.
Describe the bug I'm trying to run AttractorsViaRecurrences using the Vern9 solver, but when I run it, it gives me the following error:
The weird thing is that other people who have access to this code can run it on their computers without issues. If I don't specify the algorithm, this error doesn't occur, but I need to use a better solver than Tsit5. I've tried with other solvers and still get the same error.
Minimal Working Example