From 92a6bd346a636017bb8bcf1a6d1a1759ab08721c Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Wed, 7 Aug 2024 13:26:19 -0400 Subject: [PATCH] add test --- test/basictests.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/basictests.jl b/test/basictests.jl index cb64a1246..d27c0a8dc 100644 --- a/test/basictests.jl +++ b/test/basictests.jl @@ -1,6 +1,6 @@ using LinearSolve, LinearAlgebra, SparseArrays, MultiFloats, ForwardDiff using SciMLOperators -using IterativeSolvers, KrylovKit, MKL_jll +using IterativeSolvers, KrylovKit, MKL_jll, KrylovPreconditioners using Test import Random @@ -267,10 +267,12 @@ end @testset "KrylovJL" begin kwargs = (; gmres_restart = 5) + precs = (A,p=nothing) -> (BlockJacobiPreconditioner(A, 2), I) algorithms = ( ("Default", KrylovJL(kwargs...)), ("CG", KrylovJL_CG(kwargs...)), ("GMRES", KrylovJL_GMRES(kwargs...)), + ("GMRES_prec", KrylovJL_GMRES(;precs, ldiv=false, kwargs...)), # ("BICGSTAB",KrylovJL_BICGSTAB(kwargs...)), ("MINRES", KrylovJL_MINRES(kwargs...)) )