Skip to content

Commit faec56d

Browse files
fix v1.6
1 parent 290c82f commit faec56d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/factorization.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,18 @@ end
176176

177177
const PREALLOCATED_QR = ArrayInterface.qr_instance(rand(1, 1))
178178

179-
function init_cacheval(alg::QRFactorization{NoPivot}, A::Matrix{Float64}, b, u, Pl, Pr,
180-
maxiters::Int, abstol, reltol, verbose::Bool,
181-
assumptions::OperatorAssumptions)
182-
PREALLOCATED_QR
179+
@static if VERSION < v"1.7beta"
180+
function init_cacheval(alg::QRFactorization{Val{false}}, A::Matrix{Float64}, b, u, Pl, Pr,
181+
maxiters::Int, abstol, reltol, verbose::Bool,
182+
assumptions::OperatorAssumptions)
183+
PREALLOCATED_QR
184+
end
185+
else
186+
function init_cacheval(alg::QRFactorization{NoPivot}, A::Matrix{Float64}, b, u, Pl, Pr,
187+
maxiters::Int, abstol, reltol, verbose::Bool,
188+
assumptions::OperatorAssumptions)
189+
PREALLOCATED_QR
190+
end
183191
end
184192

185193
function init_cacheval(alg::QRFactorization, A::AbstractSciMLOperator, b, u, Pl, Pr,

0 commit comments

Comments
 (0)