Skip to content

Commit c4e6def

Browse files
author
oscarddssmith
committed
typo
1 parent 9463461 commit c4e6def

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/core/rootfind_tests.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,13 @@ end
7070
NewtonRaphson(), abstol = 1e-9)
7171
@test (@ballocated solve!($cache)) < 200
7272
end
73-
73+
7474
precs = (A, p=nothing) -> (Diagonal(randn!(similar(A, size(A,1)))), nothing)
7575
@testset "[IIP] u0: $(typeof(u0)) linsolve: $(_nameof(linsolve))" for u0 in ([
7676
1.0, 1.0],),
7777
linsolve in (nothing, KrylovJL(), KrylovJL(;precs), \)
7878

7979
ad isa AutoZygote && continue
80-
if prec === :Random
81-
prec = (args...) -> (Diagonal(randn!(similar(u0))), nothing)
82-
end
8380
solver = NewtonRaphson(; linsolve, linesearch)
8481
sol = benchmark_nlsolve_iip(quadratic_f!, u0; solver)
8582
@test SciMLBase.successful_retcode(sol)

0 commit comments

Comments
 (0)