@@ -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]
137137probN = 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
155146for u0 in [1.0 , [1 , 1.0 ]]
156147 local f, probN, sol
0 commit comments