Skip to content

Commit

Permalink
Update src/Continuous/solve.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Schilling <git@christianschilling.net>
  • Loading branch information
mforets and schillic authored Sep 11, 2024
1 parent 05ed546 commit 6f6178a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Continuous/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,11 @@ end

function compute_nsteps(δ, tspan)
if iszero(δ)
T = zero(δ)
return T
return 0
end
# get time horizon from the time span imposing that it is of the form (0, T)
T = _get_T(tspan; check_zero=true, check_positive=true)
return NSTEPS = ceil(Int, T / δ)
return ceil(Int, T / δ)
end

tstart(Δt::TimeInterval) = inf(Δt)
Expand Down

0 comments on commit 6f6178a

Please sign in to comment.