Skip to content

Commit 96d4ead

Browse files
committed
fix DDE/SDE
1 parent a5d5a63 commit 96d4ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ function dolinsolve(integrator, linsolve; A = nothing, linu = nothing, b = nothi
1010

1111
_alg = unwrap_alg(integrator, true)
1212
if !isnothing(A)
13-
(;du, u, p, t) = integrator
1413
if isnothing(integrator)
1514
reinit!(linsolve; A)
1615
else
16+
(;u, p, t) = integrator
17+
du = hasproperty(integrator) ? integrator.du : nothing
1718
p = (du, u, p, t)
1819
reinit!(linsolve; A, p)
1920
end

0 commit comments

Comments
 (0)