Skip to content

Commit

Permalink
More robust tmp_cache dispatch (#189)
Browse files Browse the repository at this point in the history
EKCache is the only AbstractODEFilterCache, and so it's safe (at least for now) to extend this function to the other algorithms. The other algorithms were fine because they were using a fallback that has been eliminated by SciML/OrdinaryDiffEq.jl#1753. It would be good to get this patch in so that the ambiguity fix PR can be fully checked.
  • Loading branch information
ChrisRackauckas authored Sep 8, 2022
1 parent b8a4d5c commit 9fe1e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alg_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OrdinaryDiffEq.standardtag(::EK1{CS,AD,DiffType,ST}) where {CS,AD,DiffType,ST} =
OrdinaryDiffEq.concrete_jac(::AbstractEK) = nothing
OrdinaryDiffEq.concrete_jac(::EK1{CS,AD,DiffType,ST,CJ}) where {CS,AD,DiffType,ST,CJ} = CJ

@inline DiffEqBase.get_tmp_cache(integ, alg::EK1, cache::AbstractODEFilterCache) =
@inline DiffEqBase.get_tmp_cache(integ, alg::AbstractEK, cache::AbstractODEFilterCache) =
(cache.tmp, cache.atmp)
OrdinaryDiffEq.get_chunksize(::EK1{CS}) where {CS} = Val(CS)
OrdinaryDiffEq.isfsal(::AbstractEK) = false
Expand Down

0 comments on commit 9fe1e38

Please sign in to comment.