Skip to content

Commit 92a6bd3

Browse files
author
oscarddssmith
committed
add test
1 parent 80d4993 commit 92a6bd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/basictests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using LinearSolve, LinearAlgebra, SparseArrays, MultiFloats, ForwardDiff
22
using SciMLOperators
3-
using IterativeSolvers, KrylovKit, MKL_jll
3+
using IterativeSolvers, KrylovKit, MKL_jll, KrylovPreconditioners
44
using Test
55
import Random
66

@@ -267,10 +267,12 @@ end
267267

268268
@testset "KrylovJL" begin
269269
kwargs = (; gmres_restart = 5)
270+
precs = (A,p=nothing) -> (BlockJacobiPreconditioner(A, 2), I)
270271
algorithms = (
271272
("Default", KrylovJL(kwargs...)),
272273
("CG", KrylovJL_CG(kwargs...)),
273274
("GMRES", KrylovJL_GMRES(kwargs...)),
275+
("GMRES_prec", KrylovJL_GMRES(;precs, ldiv=false, kwargs...)),
274276
# ("BICGSTAB",KrylovJL_BICGSTAB(kwargs...)),
275277
("MINRES", KrylovJL_MINRES(kwargs...))
276278
)

0 commit comments

Comments
 (0)