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
The method Stepanov5 doesn't seem to work, at least after first initializing OrdinaryDiffEq.
I don't know how to reproduce what happend, but two weeks ago I had the same bug calculating calculate_residuals at first and later Stepanov5 worked again. But it definitely doesn't work after just starting OrdinaryDiffEq. Expected behavior
The method Stepanov5 works.
Minimal Reproducible Example 👇
sol =solve(ODEProblem((du, u, p, t) -> du .= u, [1.0], (0.0, 1.0)), Stepanov5())
Error & Stacktrace ⚠️
julia>using OrdinaryDiffEq
julia> sol =solve(ODEProblem((du, u, p, t) -> du .= u, [1.0], (0.0, 1.0)), Stepanov5())
ERROR: MethodError: no method matching calculate_residuals(::Vector{…}, ::Vector{…}, ::Vector{…}, ::Float64, ::Float64, ::typeof(DiffEqBase.ODE_DEFAULT_NORM), ::Float64, ::Static.False)
Closest candidates are:calculate_residuals(::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any)
@ DiffEqBase C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\calculate_residuals.jl:75calculate_residuals(::Array{T}, ::Array{T}, ::Array{T}, ::T2, ::Real, ::Any, ::Any) where {T<:Number, T2<:Number}
@ DiffEqBase C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\calculate_residuals.jl:14calculate_residuals(::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any)
@ DiffEqBase C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\calculate_residuals.jl:23...
Stacktrace:
[1] perform_step!(integrator::OrdinaryDiffEq.ODEIntegrator{…}, cache::OrdinaryDiffEq.Stepanov5Cache{…}, repeat_step::Bool)
@ OrdinaryDiffEq C:\Users\colli\.julia\packages\OrdinaryDiffEq\0tf1M\src\perform_step\low_order_rk_perform_step.jl:1810
[2] perform_step!
@ C:\Users\colli\.julia\packages\OrdinaryDiffEq\0tf1M\src\perform_step\low_order_rk_perform_step.jl:1774 [inlined]
[3] solve!(integrator::OrdinaryDiffEq.ODEIntegrator{…})
@ OrdinaryDiffEq C:\Users\colli\.julia\packages\OrdinaryDiffEq\0tf1M\src\solve.jl:544
[4] #__solve#766
@ C:\Users\colli\.julia\packages\OrdinaryDiffEq\0tf1M\src\solve.jl:7 [inlined]
[5] __solve
@ C:\Users\colli\.julia\packages\OrdinaryDiffEq\0tf1M\src\solve.jl:1 [inlined]
[6] #solve_call#44
@ C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\solve.jl:612 [inlined]
[7] solve_call
@ C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\solve.jl:569 [inlined]
[8] #solve_up#53
@ C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\solve.jl:1080 [inlined]
[9] solve_up
@ C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\solve.jl:1066 [inlined]
[10] #solve#51
@ C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\solve.jl:1003 [inlined]
[11] solve(prob::ODEProblem{…}, args::Stepanov5{…})
@ DiffEqBase C:\Users\colli\.julia\packages\DiffEqBase\WyGjp\src\solve.jl:993
[12] top-level scope
@ REPL[4]:1
Some type information was truncated. Use `show(err)` to see complete types.
julia> sol =solve(ODEProblem((du, u, p, t) -> du .= u, [1.0], (0.0, 1.0)), Tsit5())
retcode: Success
Interpolation: specialized 4th order "free" interpolation
t:5-element Vector{Float64}:0.00.100019992004796620.34802031864807490.68305256531771721.0
u:5-element Vector{Vector{Float64}}:
[1.0]
[1.105193012902056]
[1.4162610240705922]
[1.9799122739515003]
[2.718281708773342]
Environment (please complete the following information):
Output of using Pkg; Pkg.status()
Status `C:\Users\colli\.julia\environments\v1.10\Project.toml`
[1dea7af3] OrdinaryDiffEq v6.75.0
Output of using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Describe the bug 🐞
The method
Stepanov5
doesn't seem to work, at least after first initializing OrdinaryDiffEq.I don't know how to reproduce what happend, but two weeks ago I had the same bug calculating calculate_residuals at first and later
Stepanov5
worked again. But it definitely doesn't work after just starting OrdinaryDiffEq.Expected behavior
The method
Stepanov5
works.Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: