Skip to content

Commit 3691bfe

Browse files
committed
Update iterative_wrappers.jl
1 parent aa211e9 commit 3691bfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/iterative_wrappers.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ function init_cacheval(alg::KrylovJL, A, b, u, Pl, Pr, maxiters::Int, abstol, re
196196
alg.KrylovAlg === Krylov.gpmr! ||
197197
alg.KrylovAlg === Krylov.fom!)
198198
if issparsematrixcsc(A)
199-
KS(makeempty_SparseMatrixCSC(A), eltype(b)[], 1)
199+
KS(makeempty_SparseMatrixCSC(A), eltype(b)[]; memory = 1)
200200
elseif A isa Matrix
201-
KS(Matrix{eltype(A)}(undef, 0, 0), eltype(b)[], 1)
201+
KS(Matrix{eltype(A)}(undef, 0, 0), eltype(b)[]; memory = 1)
202202
else
203-
KS(A, b, 1)
203+
KS(A, b; memory = 1)
204204
end
205205
else
206206
if issparsematrixcsc(A)

0 commit comments

Comments
 (0)