@@ -70,16 +70,15 @@ function CommonSolve.solve(
7070        left, abstol, promote_type (eltype (left), eltype (right))
7171    )
7272
73-     stats =  SciMLBase. NLStats (2 ,0 ,0 ,0 ,0 )
7473    if  iszero (fl)
7574        return  SciMLBase. build_solution (
76-             prob, alg, left, fl; retcode =  ReturnCode. ExactSolutionLeft, left, right, stats 
75+             prob, alg, left, fl; retcode =  ReturnCode. ExactSolutionLeft, left, right
7776        )
7877    end 
7978
8079    if  iszero (fr)
8180        return  SciMLBase. build_solution (
82-             prob, alg, right, fr; retcode =  ReturnCode. ExactSolutionRight, left, right, stats 
81+             prob, alg, right, fr; retcode =  ReturnCode. ExactSolutionRight, left, right
8382        )
8483    end 
8584
@@ -88,7 +87,7 @@ function CommonSolve.solve(
8887            @warn  " The interval is not an enclosing interval, opposite signs at the \
8988                   boundaries are required."  
9089        return  SciMLBase. build_solution (
91-             prob, alg, left, fl; retcode =  ReturnCode. InitialFailure, left, right, stats 
90+             prob, alg, left, fl; retcode =  ReturnCode. InitialFailure, left, right
9291        )
9392    end 
9493
@@ -103,7 +102,6 @@ function CommonSolve.solve(
103102
104103    i =  1 
105104    while  i ≤  maxiters
106-         stats. nsteps +=  1 
107105        span =  right -  left
108106        mid =  (left +  right) /  2 
109107        r =  ϵ_s -  (span /  2 )
@@ -118,19 +116,18 @@ function CommonSolve.solve(
118116        xp =  ifelse (abs (xt -  mid) ≤  r, xt, mid -  copysign (r, diff))  #  Projection Step
119117        if  span <  2 ϵ
120118            return  SciMLBase. build_solution (
121-                 prob, alg, xt, f (xt); retcode =  ReturnCode. Success, left, right, stats 
119+                 prob, alg, xt, f (xt); retcode =  ReturnCode. Success, left, right
122120            )
123121        end 
124122        yp =  f (xp)
125-         stats. nf +=  1 
126123        yps =  yp *  sign (fr)
127124        if  yps >  T0
128125            right, fr =  xp, yp
129126        elseif  yps <  T0
130127            left, fl =  xp, yp
131128        else 
132129            return  SciMLBase. build_solution (
133-                 prob, alg, xp, yps; retcode =  ReturnCode. Success, left, right, stats 
130+                 prob, alg, xp, yps; retcode =  ReturnCode. Success, left, right
134131            )
135132        end 
136133
@@ -139,12 +136,12 @@ function CommonSolve.solve(
139136
140137        if  nextfloat (left) ==  right
141138            return  SciMLBase. build_solution (
142-                 prob, alg, right, fr; retcode =  ReturnCode. FloatingPointLimit, left, right, stats 
139+                 prob, alg, right, fr; retcode =  ReturnCode. FloatingPointLimit, left, right
143140            )
144141        end 
145142    end 
146143
147144    return  SciMLBase. build_solution (
148-         prob, alg, left, fl; retcode =  ReturnCode. MaxIters, left, right, stats 
145+         prob, alg, left, fl; retcode =  ReturnCode. MaxIters, left, right
149146    )
150147end 
0 commit comments