Skip to content

Commit

Permalink
Update src/ridder.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 9, 2023
1 parent c7781e8 commit 5031db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ridder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Ridder, args...;
f = Base.Fix2(prob.f, prob.p)
left, right = prob.tspan
fl, fr = f(left), f(right)
atol = abstol !== nothing ? abstol : eps(1.0)
atol = abstol !== nothing ? abstol : minimum(eps(left), eps(right))

Check warning on line 15 in src/ridder.jl

View check run for this annotation

Codecov / codecov/patch

src/ridder.jl#L15

Added line #L15 was not covered by tests

if iszero(fl)
return SciMLBase.build_solution(prob, alg, left, fl;
Expand Down

0 comments on commit 5031db0

Please sign in to comment.