Skip to content

Commit 036eeda

Browse files
committed
Fix sparspak init_cacheval
1 parent b9668a4 commit 036eeda

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ext/LinearSolveSparspakExt.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function LinearSolve.init_cacheval(
1717
end
1818

1919
function LinearSolve.init_cacheval(
20-
::SparspakFactorization, A, b, u, Pl, Pr, maxiters::Int, abstol,
20+
::SparspakFactorization, A::AbstractSparseMatrixCSC, b, u, Pl, Pr, maxiters::Int, abstol,
2121
reltol,
2222
verbose::Bool, assumptions::OperatorAssumptions)
2323
A = convert(AbstractMatrix, A)

src/iterative_wrappers.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,9 @@ function init_cacheval(alg::KrylovJL, A, b, u, Pl, Pr, maxiters::Int, abstol, re
238238
end
239239

240240
# Krylov.jl tries to init with `ArrayPartition(undef, ...)`. Avoid hitting that!
241-
function init_cacheval(alg::LinearSolve.KrylovJL, A, b::RecursiveArrayTools.ArrayPartition, u, Pl, Pr,
242-
maxiters::Int, abstol, reltol, verbose::Bool, ::LinearSolve.OperatorAssumptions)
241+
function init_cacheval(
242+
alg::LinearSolve.KrylovJL, A, b::RecursiveArrayTools.ArrayPartition, u, Pl, Pr,
243+
maxiters::Int, abstol, reltol, verbose::Bool, ::LinearSolve.OperatorAssumptions)
243244
return nothing
244245
end
245246

0 commit comments

Comments
 (0)