Skip to content

Commit 2a4558b

Browse files
committed
Always respect user provided u0 override
1 parent 13ac2da commit 2a4558b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solve.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,8 @@ function get_concrete_problem(prob, isadapt; kwargs...)
11721172
tspan_promote = promote_tspan(u0_promote, p, tspan, prob, kwargs)
11731173
f_promote = promote_f(prob.f, Val(SciMLBase.specialization(prob.f)), u0_promote, p,
11741174
tspan_promote[1])
1175-
if isconcreteu0(prob, tspan[1], kwargs) && typeof(u0_promote) === typeof(prob.u0) &&
1175+
if isconcreteu0(prob, tspan[1], kwargs) && prob.u0 === u0 &&
1176+
typeof(u0_promote) === typeof(prob.u0) &&
11761177
prob.tspan == tspan && typeof(prob.tspan) === typeof(tspan_promote) &&
11771178
p === prob.p && f_promote === prob.f
11781179
return prob

0 commit comments

Comments
 (0)