Skip to content

Commit

Permalink
right exact solution
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-rs committed Sep 1, 2023
1 parent a1f54e6 commit 377c86e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bisection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Bisection, args...
retcode = ReturnCode.ExactSolutionLeft, left = left,
right = right)
end
if iszero(fr)
return SciMLBase.build_solution(prob, alg, right, fr;
retcode = ReturnCode.ExactSolutionRight, left = left,
right = right)
end

i = 1
if !iszero(fr)
Expand Down

0 comments on commit 377c86e

Please sign in to comment.