-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_fsalfirstlast method error #2533
Comments
TaylorIntegration.jl needs a dispatch for the method. |
Should I raise an issue on the TaylorIntegration.jl repository for this ?? |
yes or PR |
raised an issue in TaylorIntegration.jl PerezHz/TaylorIntegration.jl#200 will start with a PR soon. |
Should the dispatch method be implemented in OrdinaryDiffEq.jl or should it be in TaylorIntegration.jl. I implemented the dispatch methods in TaylorIntegration.jl code but they still error here :
|
Dispatch method I implemented : function get_fsalfirstlast(cache::TaylorIntegrationDiffEqExt.TaylorMethodCache{Matrix{Float64}, Matrix{Float64}, Taylor1{Float64}, Matrix{Taylor1{Float64}}},
u::Matrix{Float64})
# Extract the FSAL components from the cache
if isdefined(cache, :fsalfirst) && isdefined(cache, :k)
return cache.fsalfirst, cache.k
else
# Fallback for cases where FSAL components might not be defined
error("FSAL components not defined in the cache")
end
end function get_fsalfirstlast(cache::TaylorMethodCache{Vector{Float64}, Vector{Float64}, Taylor1{Float64}, Vector{Taylor1{Float64}}}, u::Vector{Float64})
# Extract the FSAL components from the cache
if isdefined(cache, :fsalfirst) && isdefined(cache, :k)
return cache.fsalfirst, cache.k
else
# Fallback for cases where FSAL components might not be defined
error("FSAL components not defined in the cache")
end
end |
That's shadowing not extending. It should be |
Yeah 👍 . Got it. Thank you ! |
solving the ODEProblem in SciMLBenchmarks for Henon_Heiles_energy_conservation_benchmarks using TaylorMethod() function gives the following method call error which didn't occur in the previous versions
Code to reproduce the issue :
https://github.com/SciML/SciMLBenchmarks.jl/blob/master/benchmarks/DynamicalODE/Henon-Heiles_energy_conservation_benchmark.jmd
on Julia version 1.10.4 and TaylorIntegration version 0.16.1, OrdinaryDiffEq version 6
The text was updated successfully, but these errors were encountered: