Skip to content

Commit

Permalink
chore: use sol.prob to access u0
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaLGandhi committed Jun 24, 2024
1 parent b6db6f8 commit 4ef4a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backsolve_adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ end
with a discrete cost function but no specified `dgdu_discrete` or `dgdp_discrete`.
Please use the higher level `solve` interface or specify these two contributions.")

p = parameter_values(sol)
u0 = state_values(sol, 1)
p = parameter_values(sol.prob)
u0 = state_values(sol.prob)
if p === nothing || p isa SciMLBase.NullParameters
tunables, repack = p, identity
else
Expand Down

0 comments on commit 4ef4a9e

Please sign in to comment.