Skip to content

Commit

Permalink
Merge pull request #503 from oscardssmith/patch-1
Browse files Browse the repository at this point in the history
Use both sides of tspan when determining dtmin
  • Loading branch information
ChrisRackauckas authored Sep 24, 2022
2 parents cfac67d + c653b20 commit 5c13cc7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ function DiffEqBase.__init(
delta=delta_default(alg),
maxiters = adaptive ? 1000000 : typemax(Int),
dtmax=eltype(concrete_prob(_prob).tspan)((concrete_prob(_prob).tspan[end]-concrete_prob(_prob).tspan[1])),
dtmin = typeof(one(eltype(concrete_prob(_prob).tspan))) <: AbstractFloat ? eps(eltype(concrete_prob(_prob).tspan)) :
typeof(one(eltype(concrete_prob(_prob).tspan))) <: Integer ? 0 :
eltype(concrete_prob(_prob).tspan)(1//10^(10)),
dtmin = DiffEqBase.prob2dtmin(concrete_prob(_prob)),
internalnorm = ODE_DEFAULT_NORM,
isoutofdomain = ODE_DEFAULT_ISOUTOFDOMAIN,
unstable_check = ODE_DEFAULT_UNSTABLE_CHECK,
Expand Down

0 comments on commit 5c13cc7

Please sign in to comment.