Skip to content

Commit 34743d2

Browse files
authored
fix DDE/SDE
1 parent 025900d commit 34743d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl

+2-1
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)