Skip to content

Commit 834b8a0

Browse files
handle tspan edge case
1 parent cc8afc7 commit 834b8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ function DiffEqBase.ODEProblem{iip, specialize}(sys::AbstractODESystem, u0map, t
664664
kwargs...) where {iip, specialize}
665665
has_difference = any(isdifferenceeq, equations(sys))
666666
f, u0, p = process_DEProblem(ODEFunction{iip, specialize}, sys, u0map, parammap;
667-
t = tspan[1],
667+
t = tspan !== nothing ? tspan[1] : tspan,
668668
has_difference = has_difference,
669669
check_length, kwargs...)
670670
cbs = process_events(sys; callback, has_difference, kwargs...)

0 commit comments

Comments
 (0)