Skip to content

Commit 5ec1880

Browse files
fix: tstops can be Real
1 parent 485e6db commit 5ec1880

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ function init_up(prob::AbstractDEProblem, sensealg, u0, p, args...; kwargs...)
572572
if tstops === nothing && has_kwargs(prob)
573573
tstops = get(prob.kwargs, :tstops, nothing)
574574
end
575-
if !(tstops isa Union{Nothing, AbstractArray, Tuple}) && !SciMLBase.allows_late_binding_tstops(alg)
575+
if !(tstops isa Union{Nothing, AbstractArray, Tuple, Real}) && !SciMLBase.allows_late_binding_tstops(alg)
576576
throw(LateBindingTstopsNotSupportedError())
577577
end
578578
_prob = get_concrete_problem(prob, isadaptive(alg); u0 = u0, p = p, kwargs...)
@@ -1108,7 +1108,7 @@ function solve_up(prob::Union{AbstractDEProblem, NonlinearProblem}, sensealg, u0
11081108
if tstops === nothing && has_kwargs(prob)
11091109
tstops = get(prob.kwargs, :tstops, nothing)
11101110
end
1111-
if !(tstops isa Union{Nothing, AbstractArray, Tuple}) && !SciMLBase.allows_late_binding_tstops(alg)
1111+
if !(tstops isa Union{Nothing, AbstractArray, Tuple, Real}) && !SciMLBase.allows_late_binding_tstops(alg)
11121112
throw(LateBindingTstopsNotSupportedError())
11131113
end
11141114
_prob = get_concrete_problem(prob, isadaptive(alg); u0 = u0, p = p, kwargs...)

0 commit comments

Comments
 (0)