Skip to content

Commit 6a49ebe

Browse files
Merge pull request #812 from jClugstor/verbose_pardiso_fix
Fix Pardiso and HYPRE verbosity when verbose is Bool
2 parents c3ca509 + 7451167 commit 6a49ebe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ext/LinearSolveHYPREExt.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,12 @@ function SciMLBase.init(prob::LinearProblem, alg::HYPREAlgorithm,
144144
Tc = typeof(cacheval)
145145
isfresh = true
146146
precsisfresh = false
147-
148147
cache = LinearCache{
149148
typeof(A), typeof(b), typeof(u0), typeof(p), typeof(alg), Tc,
150-
typeof(Pl), typeof(Pr), typeof(reltol),
149+
typeof(Pl), typeof(Pr), typeof(reltol), typeof(verb_spec),
151150
typeof(__issquare(assumptions)), typeof(sensealg)
152151
}(A, b, u0, p, alg, cacheval, isfresh, precsisfresh, Pl, Pr, abstol, reltol,
153-
maxiters, verbose, assumptions, sensealg)
152+
maxiters, verb_spec, assumptions, sensealg)
154153
return cache
155154
end
156155

ext/LinearSolvePardisoExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function LinearSolve.init_cacheval(alg::PardisoJL,
7575
end
7676

7777
if verbose isa Bool
78-
verbose_spec = LinearVerbosity(pardiso_verbosity = SciMLLogging.WarnLevel())
78+
verbose_spec = LinearVerbosity(pardiso_verbosity = SciMLLogging.Silent())
7979
else
8080
verbose_spec = verbose
8181
end

0 commit comments

Comments
 (0)