Skip to content

Commit 5940e30

Browse files
author
oscarddssmith
committed
fixes
1 parent 8ee551f commit 5940e30

File tree

1 file changed

+3
-3
lines changed
  • lib/BracketingNonlinearSolve/src

1 file changed

+3
-3
lines changed

lib/BracketingNonlinearSolve/src/itp.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ function ITP(; scaled_k1::Real = 0.2, k2::Real = 2, n0::Int = 10)
5656
return ITP(scaled_k1, k2, n0)
5757
end
5858

59-
@muladd function CommonSolve.solve(
59+
function CommonSolve.solve(
6060
prob::IntervalNonlinearProblem, alg::ITP, args...;
6161
maxiters = 1000, abstol = nothing, verbose::Bool = true, kwargs...
6262
)
6363
@assert !SciMLBase.isinplace(prob) "`ITP` only supports out-of-place problems."
6464

6565
f = Base.Fix2(prob.f, prob.p)
66-
left, right = minmax(prob.tspan)
66+
left, right = minmax(prob.tspan...)
6767
fl, fr = f(left), f(right)
6868

6969
abstol = NonlinearSolveBase.get_tolerance(
@@ -121,7 +121,7 @@ end
121121

122122
# update
123123
if isless(xt, xp)
124-
xp = prevloat(xp)
124+
xp = prevfloat(xp)
125125
else
126126
xp = nextfloat(xp)
127127
end

0 commit comments

Comments
 (0)