Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Aug 7, 2024
1 parent 80d4993 commit 92a6bd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/basictests.jl
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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...))
)
Expand Down

0 comments on commit 92a6bd3

Please sign in to comment.