From aff4595c5f35f6efd1985f8eeae3c6272ccd4ee5 Mon Sep 17 00:00:00 2001 From: Utkarsh Date: Tue, 10 Oct 2023 00:27:33 -0400 Subject: [PATCH] Fix precs in tests --- test/basictests.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/basictests.jl b/test/basictests.jl index 35a34f3d6..fbd814f3e 100644 --- a/test/basictests.jl +++ b/test/basictests.jl @@ -49,13 +49,13 @@ end @test (@ballocated solve!($cache)) < 200 end - precs = [ - NonlinearSolve.DEFAULT_PRECS, - (args...) -> (Diagonal(rand!(similar(u0))), nothing), - ] - @testset "[IIP] u0: $(typeof(u0)) precs: $(_nameof(prec)) linsolve: $(_nameof(linsolve))" for u0 in ([ - 1.0, 1.0],), prec in precs, linsolve in (nothing, KrylovJL_GMRES()) + 1.0, 1.0],), + prec in [ + NonlinearSolve.DEFAULT_PRECS, + (args...) -> (Diagonal(rand!(similar(u0))), nothing), + ], linsolve in (nothing, KrylovJL_GMRES()) + ad isa AutoZygote && continue if prec === :Random prec = (args...) -> (Diagonal(randn!(similar(u0))), nothing)