Skip to content

Commit

Permalink
fix DDE/SDE
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Aug 15, 2024
1 parent 025900d commit 34743d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/OrdinaryDiffEqDifferentiation/src/linsolve_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ function dolinsolve(integrator, linsolve; A = nothing, linu = nothing, b = nothi

_alg = unwrap_alg(integrator, true)
if !isnothing(A)
(;du, u, p, t) = integrator
if isnothing(integrator)
reinit!(linsolve; A)
else
(;u, p, t) = integrator
du = hasproperty(integrator) ? integrator.du : nothing
p = (du, u, p, t)
reinit!(linsolve; A, p)
end
Expand Down

0 comments on commit 34743d2

Please sign in to comment.