Skip to content

Commit 12f686a

Browse files
committed
add verbose to HYPREExt
1 parent 7f21dc6 commit 12f686a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/LinearSolveHYPREExt.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ using HYPRE.LibHYPRE: HYPRE_Complex
55
using HYPRE: HYPRE, HYPREMatrix, HYPRESolver, HYPREVector
66
using LinearSolve: HYPREAlgorithm, LinearCache, LinearProblem, LinearSolve,
77
OperatorAssumptions, default_tol, init_cacheval, __issquare,
8-
__conditioning, LinearSolveAdjoint
8+
__conditioning, LinearSolveAdjoint, LinearVerbosity
9+
using SciMLLogging: Verbosity, verbosity_to_int
910
using SciMLBase: LinearProblem, LinearAliasSpecifier, SciMLBase
1011
using UnPack: @unpack
1112
using Setfield: @set!
@@ -159,10 +160,11 @@ function create_solver(alg::HYPREAlgorithm, cache::LinearCache)
159160
solver = create_solver(alg.solver, comm)
160161

161162
# Construct solver options
163+
verbose = verbosity_to_int(cache.verbose.numerical.HYPRE_verbosity)
162164
solver_options = (;
163165
AbsoluteTol = cache.abstol,
164166
MaxIter = cache.maxiters,
165-
PrintLevel = Int(cache.verbose),
167+
PrintLevel = verbose,
166168
Tol = cache.reltol)
167169

168170
# Preconditioner (uses Pl even though it might not be a *left* preconditioner just *a*

0 commit comments

Comments
 (0)