Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 6b2fb69

Browse files
committed
format
1 parent 2c2737a commit 6b2fb69

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/bisection.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Bisection, args...
2525
f = Base.Fix2(prob.f, prob.p)
2626
left, right = prob.tspan
2727
fl, fr = f(left), f(right)
28-
#atol = abstol
2928
if iszero(fl)
3029
return SciMLBase.build_solution(prob, alg, left, fl;
3130
retcode = ReturnCode.ExactSolutionLeft, left = left,

src/itp.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::ITP,
113113

114114
if abs((left - right) / 2) < ϵ
115115
return SciMLBase.build_solution(prob, alg, mid, f(mid);
116-
retcode = ReturnCode.Success,
117-
left = left, right = right)
116+
retcode = ReturnCode.Success,
117+
left = left, right = right)
118118
end
119-
119+
120120
## Update ##
121121
tmin, tmax = minmax(left, right)
122122
xp >= tmax && (xp = prevfloat(tmax))

0 commit comments

Comments
 (0)