Skip to content

Commit e414e7c

Browse files
jClugstorChrisRackauckas
authored andcommitted
test should use Bisection
1 parent e2c9f32 commit e414e7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/BracketingNonlinearSolve/test/adjoint_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@testitem "Simple Adjoint Test" tags=[:adjoint] begin
2-
using ForwardDiff, Zygote, DiffEqBase, BracketingNonlinearSolve
2+
using ForwardDiff, Zygote, BracketingNonlinearSolve
33

44
ff(u, p) = u^2 .- p[1]
55

66
function solve_nlprob(p)
77
prob = IntervalNonlinearProblem{false}(ff, (1.0, 3.0), p)
8-
sol = solve(prob, Broyden())
8+
sol = solve(prob, Bisection())
99
res = sol isa AbstractArray ? sol : sol.u
1010
return sum(abs2, res)
1111
end

0 commit comments

Comments
 (0)