Skip to content

Commit

Permalink
tweak warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwheeler committed Sep 27, 2024
1 parent ee060e5 commit 79bc24e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bracketing/bisection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Bisection,
end

if sign(fl) == sign(fr)
@warn "The interval is not an enclosing interval, opposite signs at the boundaries are required."
@warn "The interval is not an enclosing interval (does not contain a root). Returning boundary value."
return build_solution(
prob, alg, left, fl; retcode = ReturnCode.InitialFailure, left, right)
end
Expand Down
2 changes: 1 addition & 1 deletion src/bracketing/brent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Brent, args...;
end

if sign(fl) == sign(fr)
@warn "The interval is not an enclosing interval, opposite signs at the boundaries are required."
@warn "The interval is not an enclosing interval (does not contain a root). Returning boundary value."
return build_solution(
prob, alg, left, fl; retcode = ReturnCode.InitialFailure, left, right)
end
Expand Down
2 changes: 1 addition & 1 deletion src/bracketing/falsi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Falsi, args...;
end

if sign(fl) == sign(fr)
@warn "The interval is not an enclosing interval, opposite signs at the boundaries are required."
@warn "The interval is not an enclosing interval (does not contain a root). Returning boundary value."
return build_solution(
prob, alg, left, fl; retcode = ReturnCode.InitialFailure, left, right)
end
Expand Down
2 changes: 1 addition & 1 deletion src/bracketing/itp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::ITP, args...;
end

if sign(fl) == sign(fr)
@warn "The interval is not an enclosing interval, opposite signs at the boundaries are required."
@warn "The interval is not an enclosing interval (does not contain a root). Returning boundary value."
return build_solution(
prob, alg, left, fl; retcode = ReturnCode.InitialFailure, left, right)
end
Expand Down
2 changes: 1 addition & 1 deletion src/bracketing/ridder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function SciMLBase.solve(prob::IntervalNonlinearProblem, alg::Ridder, args...;
end

if sign(fl) == sign(fr)
@warn "The interval is not an enclosing interval, opposite signs at the boundaries are required."
@warn "The interval is not an enclosing interval (does not contain a root). Returning boundary value."
return build_solution(
prob, alg, left, fl; retcode = ReturnCode.InitialFailure, left, right)
end
Expand Down

0 comments on commit 79bc24e

Please sign in to comment.