Skip to content

Commit 7f21dc6

Browse files
committed
add verbose to PardisoExt
1 parent 794e67c commit 7f21dc6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/LinearSolvePardisoExt.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using Pardiso, LinearSolve
44
using SparseArrays
55
using SparseArrays: nonzeros, rowvals, getcolptr
66
using LinearSolve: PardisoJL, @unpack
7-
7+
using SciMLLogging: @SciMLMessage, verbosity_to_bool
88
using LinearSolve.SciMLBase
99

1010
LinearSolve.needs_concrete_A(alg::PardisoJL) = true
@@ -73,7 +73,10 @@ function LinearSolve.init_cacheval(alg::PardisoJL,
7373
error("Number type not supported by Pardiso")
7474
end
7575
end
76-
verbose && Pardiso.set_msglvl!(solver, Pardiso.MESSAGE_LEVEL_ON)
76+
77+
if verbosity_to_bool(verbose.numerical.pardiso_verbosity)
78+
Pardiso.set_msglvl!(solver, Pardiso.MESSAGE_LEVEL_ON)
79+
end
7780

7881
#=
7982
Note: It is recommended to use IPARM(11)=1 (scaling) and IPARM(13)=1 (matchings) for

0 commit comments

Comments
 (0)