Skip to content

Commit 9b36225

Browse files
make sure to check tspan didn't change
1 parent f7975f7 commit 9b36225

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
@@ -123,7 +123,8 @@ function get_concrete_problem(prob, kwargs)
123123
u0 = get_concrete_u0(prob, tspan[1], kwargs)
124124
u0_promote = promote_u0(u0, prob.p, tspan[1])
125125
tspan_promote = promote_tspan(u0, prob.p, tspan, prob, kwargs)
126-
if isconcreteu0(prob, tspan[1], kwargs) && typeof(u0_promote) === typeof(u0) && typeof(tspan) === typeof(tspan_promote)
126+
if isconcreteu0(prob, tspan[1], kwargs) && typeof(u0_promote) === typeof(u0) &&
127+
prob.tspan == tspan && typeof(tspan) === typeof(tspan_promote)
127128
return prob
128129
else
129130
return remake(prob; u0 = u0_promote, tspan = tspan_promote)

0 commit comments

Comments
 (0)