Skip to content

Commit b828910

Browse files
jClugstorChrisRackauckas
authored andcommitted
explanation comment
1 parent 3061a80 commit b828910

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/integrators/interface.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ 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-
206+
207+
# jac and grad configs after DI integration are Tuples, and resizing needs cache
208+
# before DI integration, these just need the config and the integrator
207209
if cache.jac_config isa Tuple
208210
OrdinaryDiffEqDifferentiation.resize_jac_config!(cache, integrator)
209211
OrdinaryDiffEqDifferentiation.resize_grad_config!(cache, integrator)

0 commit comments

Comments
 (0)