Skip to content

Commit 794e67c

Browse files
committed
add verbosity to KrylovKitExt
1 parent f72688d commit 794e67c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/LinearSolveKrylovKitExt.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module LinearSolveKrylovKitExt
22

33
using LinearSolve, KrylovKit, LinearAlgebra
44
using LinearSolve: LinearCache, DEFAULT_PRECS
5+
using SciMLLogging: Verbosity, verbosity_to_int
56

67
function LinearSolve.KrylovKitJL(args...;
78
KrylovAlg = KrylovKit.GMRES, gmres_restart = 0,
@@ -25,7 +26,7 @@ function SciMLBase.solve!(cache::LinearCache, alg::KrylovKitJL; kwargs...)
2526
atol = float(cache.abstol)
2627
rtol = float(cache.reltol)
2728
maxiter = cache.maxiters
28-
verbosity = cache.verbose ? 1 : 0
29+
verbosity = verbosity_to_int(cache.verbose.numerical.KrylovKit_verbosity)
2930
krylovdim = (alg.gmres_restart == 0) ? min(20, size(cache.A, 1)) : alg.gmres_restart
3031

3132
kwargs = (atol = atol, rtol = rtol, maxiter = maxiter, verbosity = verbosity,

0 commit comments

Comments
 (0)