Skip to content

Commit 2fcd456

Browse files
jClugstorChrisRackauckas
authored andcommitted
make backward compatible
1 parent a2c60f1 commit 2fcd456

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/integrators/interface.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,14 @@ function DiffEqBase.resize_non_user_cache!(integrator::DDEIntegrator,
203203
cache::RosenbrockMutableCache, i)
204204
cache.J = similar(cache.J, i, i)
205205
cache.W = similar(cache.W, i, i)
206-
OrdinaryDiffEqDifferentiation.resize_jac_config!(cache, integrator)
207-
OrdinaryDiffEqDifferentiation.resize_grad_config!(cache, integrator)
206+
if cache.jac_config isa Tuple
207+
OrdinaryDiffEqDifferentiation.resize_jac_config!(cache, integrator)
208+
OrdinaryDiffEqDifferentiation.resize_grad_config!(cache, integrator)
209+
else
210+
OrdinaryDiffEqDifferentiation.resize_jac_config!(cache.jac_config, integrator)
211+
OrdinaryDiffEqDifferentiation.resize_grad_config!(cache.grad_config, integrator)
212+
end
213+
208214
nothing
209215
end
210216

0 commit comments

Comments
 (0)