Skip to content

Commit

Permalink
Refine ITP return solution on hitting f(·) zero
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniGlez committed Jul 23, 2023
1 parent 8e8ef86 commit 65f24fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SimpleNonlinearSolve/src/itp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::ITP,
fl = yp
else
return SciMLBase.build_solution(prob, alg, xp, yps;
retcode = ReturnCode.Success, left = left,
right = right)
retcode = ReturnCode.Success, left = xp,
right = xp)
end
i += 1
mid = (left + right) / 2
Expand Down

0 comments on commit 65f24fe

Please sign in to comment.