Skip to content

Commit 2b9767b

Browse files
committed
back compat for DelayDiffEq
1 parent 34905f1 commit 2b9767b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/OrdinaryDiffEqCore/src/caches/basic_caches.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,11 @@ alg_cache(alg::OrdinaryDiffEqAlgorithm, prob, callback::F) where {F} = ODEEmptyC
124124

125125
get_chunksize(cache::SciMLBase.DECache) = error("This cache does not have a chunksize.")
126126
get_chunksize(cache::ODEChunkCache{CS}) where {CS} = CS
127+
128+
# For backwards compat with DelayDiffEq
129+
function alg_cache(alg, u, rate_prototype, uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits,
130+
ode_uprev, ode_f, t0, tType, reltol, p, calck, isinplace)
131+
132+
alg_cache(alg, u, rate_prototype, uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits, ode_uprev,
133+
ode_f, t0, zero(tType), reltol, p, calck, isinplace, ODEVerbosity())
134+
end

0 commit comments

Comments
 (0)