Skip to content

Commit 0c382c3

Browse files
committed
fix verbose for HYPRE
1 parent 0b804aa commit 0c382c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/LinearSolveHYPREExt.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ function SciMLBase.init(prob::LinearProblem, alg::HYPREAlgorithm,
112112
alias_b = aliases.alias_b
113113
end
114114

115+
if verbose isa Bool
116+
#@warn "Using `true` or `false` for `verbose` is being deprecated. Please use a `LinearVerbosity` type to specify verbosity settings.
117+
# For details see the verbosity section of the common solver options documentation page."
118+
if verbose
119+
verbose = LinearVerbosity()
120+
else
121+
verbose = LinearVerbosity(Verbosity.None())
122+
end
123+
elseif verbose isa Verbosity.Type
124+
verbose = LinearVerbosity(verbose)
125+
end
126+
115127
A = A isa HYPREMatrix ? A : HYPREMatrix(A)
116128
b = b isa HYPREVector ? b : HYPREVector(b)
117129
u0 = u0 isa HYPREVector ? u0 : (u0 === nothing ? nothing : HYPREVector(u0))

0 commit comments

Comments
 (0)