Skip to content

Commit cca2e78

Browse files
committed
allow bool verbose
1 parent 2535183 commit cca2e78

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ext/LinearSolveForwardDiffExt.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
module LinearSolveForwardDiffExt
22

33
using LinearSolve
4-
using LinearSolve: SciMLLinearSolveAlgorithm, __init
4+
using LinearSolve: SciMLLinearSolveAlgorithm, __init, LinearVerbosity
55
using LinearAlgebra
66
using ForwardDiff
77
using ForwardDiff: Dual, Partials
88
using SciMLBase
99
using RecursiveArrayTools
10+
using SciMLLogging: Verbosity
1011

1112
const DualLinearProblem = LinearProblem{
1213
<:Union{Number, <:AbstractArray, Nothing}, iip,
@@ -136,7 +137,7 @@ function __dual_init(
136137
abstol = LinearSolve.default_tol(real(eltype(prob.b))),
137138
reltol = LinearSolve.default_tol(real(eltype(prob.b))),
138139
maxiters::Int = length(prob.b),
139-
verbose::LinearVerbosity = false,
140+
verbose = LinearVerbosity(Verbosity.None()),
140141
Pl = nothing,
141142
Pr = nothing,
142143
assumptions = OperatorAssumptions(issquare(prob.A)),

ext/LinearSolveHYPREExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function SciMLBase.init(prob::LinearProblem, alg::HYPREAlgorithm,
6565
eltype(prob.A)),
6666
# TODO: Implement length() for HYPREVector in HYPRE.jl?
6767
maxiters::Int = prob.b isa HYPREVector ? 1000 : length(prob.b),
68-
verbose::LinearVerbosity = false,
68+
verbose = LinearVerbosity(Verbosity.None()),
6969
Pl = LinearAlgebra.I,
7070
Pr = LinearAlgebra.I,
7171
assumptions = OperatorAssumptions(),

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function __init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
147147
abstol = default_tol(real(eltype(prob.b))),
148148
reltol = default_tol(real(eltype(prob.b))),
149149
maxiters::Int = length(prob.b),
150-
verbose::LinearVerbosity = LinearVerbosity(),
150+
verbose = LinearVerbosity(),
151151
Pl = nothing,
152152
Pr = nothing,
153153
assumptions = OperatorAssumptions(issquare(prob.A)),

0 commit comments

Comments
 (0)