From efaa9e001ef6198aa9d08707da636e25e95d6617 Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Mon, 31 Mar 2025 18:04:33 -0400 Subject: [PATCH] remove ITP early termination condition Added for similarity to BracketingNonlinearSolve, but not useful here since we always want ULP accurate solves here. Found by https://github.com/SciML/DiffEqBase.jl/pull/1127#discussion_r2021827114 --- src/internal_itp.jl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/internal_itp.jl b/src/internal_itp.jl index 8e3c36bd5..a073e18ec 100644 --- a/src/internal_itp.jl +++ b/src/internal_itp.jl @@ -61,11 +61,6 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem{IP, Tuple{T, T}}, alg::I xt = ifelse(δ ≤ abs(diff), x_f + copysign(δ, diff), mid) # Truncation Step xp = ifelse(abs(xt - mid) ≤ r, xt, mid - copysign(r, diff)) # Projection Step - if span < 2ϵ - return SciMLBase.build_solution( - prob, alg, xt, f(xt); retcode = ReturnCode.Success, left, right - ) - end yp = f(xp) yps = yp * sign(fr) if yps > T0