Skip to content

Commit 96b7a54

Browse files
authored
Merge pull request #809 from RomeoV/fix-abstract-linearverbosity-type
Make `LinearVerbosity` concrete
2 parents 13de42c + a4eaf46 commit 96b7a54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The cache automatically tracks when matrix `A` or parameters `p` change by setti
105105
appropriate freshness flags. When `solve!` is called, stale cache entries are automatically
106106
recomputed as needed.
107107
"""
108-
mutable struct LinearCache{TA, Tb, Tu, Tp, Talg, Tc, Tl, Tr, Ttol, issq, S}
108+
mutable struct LinearCache{TA, Tb, Tu, Tp, Talg, Tc, Tl, Tr, Ttol, Tlv <: LinearVerbosity, issq, S}
109109
A::TA
110110
b::Tb
111111
u::Tu
@@ -119,7 +119,7 @@ mutable struct LinearCache{TA, Tb, Tu, Tp, Talg, Tc, Tl, Tr, Ttol, issq, S}
119119
abstol::Ttol
120120
reltol::Ttol
121121
maxiters::Int
122-
verbose::LinearVerbosity
122+
verbose::Tlv
123123
assumptions::OperatorAssumptions{issq}
124124
sensealg::S
125125
end
@@ -385,7 +385,7 @@ function __init(prob::LinearProblem, alg::SciMLLinearSolveAlgorithm,
385385
Tc = typeof(cacheval)
386386

387387
cache = LinearCache{typeof(A), typeof(b), typeof(u0_), typeof(p), typeof(alg), Tc,
388-
typeof(Pl), typeof(Pr), typeof(reltol), typeof(assumptions.issq),
388+
typeof(Pl), typeof(Pr), typeof(reltol), typeof(verbose_spec), typeof(assumptions.issq),
389389
typeof(sensealg)}(
390390
A, b, u0_, p, alg, cacheval, isfresh, precsisfresh, Pl, Pr, abstol, reltol,
391391
maxiters, verbose_spec, assumptions, sensealg)

0 commit comments

Comments
 (0)