Skip to content

Commit

Permalink
chore: qa fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Aug 23, 2024
1 parent 670a2a1 commit 56c6d4d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/BracketingNonlinearSolve/src/alefeld.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function CommonSolve.solve(prob::IntervalNonlinearProblem, alg::Alefeld, args...
end
fc = f(c)

# Reuturn solution when run out of max interation
# Return solution when run out of max iteration
return SciMLBase.build_solution(
prob, alg, c, fc; retcode = ReturnCode.MaxIters, left = a, right = b)
end
4 changes: 2 additions & 2 deletions lib/BracketingNonlinearSolve/src/brent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function CommonSolve.solve(prob::IntervalNonlinearProblem, alg::Brent, args...;

fs = f(s)
if abs((right - left) / 2) < abstol
return SciMLBase.build_solution(prob, alg, s, fs;
retcode = ReturnCode.Success, left, right)
return SciMLBase.build_solution(
prob, alg, s, fs; retcode = ReturnCode.Success, left, right)
end

if iszero(fs)
Expand Down
2 changes: 1 addition & 1 deletion lib/BracketingNonlinearSolve/src/ridder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ function CommonSolve.solve(prob::IntervalNonlinearProblem, alg::Ridder, args...;

return SciMLBase.build_solution(
prob, alg, left, fl; retcode = ReturnCode.MaxIters, left, right)
end
end
1 change: 1 addition & 0 deletions lib/BracketingNonlinearSolve/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 56c6d4d

Please sign in to comment.