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

Commit 2cae4ff

Browse files
fix tests
1 parent ab47119 commit 2cae4ff

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/basictests.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ for alg in [SimpleNewtonRaphson(), Broyden(), Klement(),
6666
TrustRegion(10.0)]
6767
g = function (p)
6868
probN = NonlinearProblem{false}(f, csu0, p)
69-
sol = solve(probN, alg, tol = 1e-9)
69+
sol = solve(probN, alg, abstol = 1e-9)
7070
return sol.u[end]
7171
end
7272

@@ -137,20 +137,11 @@ f, u0 = (u, p) -> u .* u .- 2.0, @SVector[1.0, 1.0]
137137
probN = NonlinearProblem(f, u0)
138138

139139
@test solve(probN, SimpleNewtonRaphson()).u[end] sqrt(2.0)
140-
@test solve(probN, SimpleNewtonRaphson(); immutable = false).u[end] sqrt(2.0)
141140
@test solve(probN, SimpleNewtonRaphson(; autodiff = false)).u[end] sqrt(2.0)
142-
@test solve(probN, SimpleNewtonRaphson(; autodiff = false)).u[end] sqrt(2.0)
143-
144141
@test solve(probN, TrustRegion(10.0)).u[end] sqrt(2.0)
145-
@test solve(probN, TrustRegion(10.0); immutable = false).u[end] sqrt(2.0)
146-
@test solve(probN, TrustRegion(10.0; autodiff = false)).u[end] sqrt(2.0)
147142
@test solve(probN, TrustRegion(10.0; autodiff = false)).u[end] sqrt(2.0)
148-
149143
@test solve(probN, Broyden()).u[end] sqrt(2.0)
150-
@test solve(probN, Broyden(); immutable = false).u[end] sqrt(2.0)
151-
152144
@test solve(probN, Klement()).u[end] sqrt(2.0)
153-
@test solve(probN, Klement(); immutable = false).u[end] sqrt(2.0)
154145

155146
for u0 in [1.0, [1, 1.0]]
156147
local f, probN, sol

0 commit comments

Comments
 (0)