Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

tweak warning message for when tspan isn't an enclosing interval #162

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading