Skip to content

Commit

Permalink
fix: handle case where ODEProblem is trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 3, 2024
1 parent da809b0 commit aa5df35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/remake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ function remake(prob::ODEProblem; f = missing,
if !lazy_initialization
u0, p, _ = get_initial_values(
prob, prob, prob.f, OverrideInit(), Val(isinplace(prob)))
if isempty(u0)
u0 = nothing
end
@reset prob.u0 = u0
@reset prob.p = p
end
Expand Down

0 comments on commit aa5df35

Please sign in to comment.