Skip to content

Commit 1c30e99

Browse files
fix: handle case where ODEProblem is trivial
1 parent e1702da commit 1c30e99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/remake.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ function remake(prob::ODEProblem; f = missing,
187187
if !lazy_initialization
188188
u0, p, _ = get_initial_values(
189189
prob, prob, prob.f, OverrideInit(), Val(isinplace(prob)))
190+
if u0 !== nothing && eltype(u0) == Any && isempty(u0)
191+
u0 = nothing
192+
end
190193
@reset prob.u0 = u0
191194
@reset prob.p = p
192195
end

0 commit comments

Comments
 (0)