Skip to content

Commit

Permalink
Merge pull request #458 from SciML/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Fix 32-bit OS compatibility with Krylov wrappers
  • Loading branch information
ChrisRackauckas authored Jan 9, 2024
2 parents 50bc8e1 + 9999044 commit 83385a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iterative_wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ function init_cacheval(alg::KrylovJL, A, b, u, Pl, Pr, maxiters::Int, abstol, re
alg.KrylovAlg === Krylov.gpmr! ||
alg.KrylovAlg === Krylov.fom!)
if A isa SparseMatrixCSC
KS(SparseMatrixCSC(0, 0, [1], Int64[], eltype(A)[]), eltype(b)[], 1)
KS(SparseMatrixCSC(0, 0, [1], Int[], eltype(A)[]), eltype(b)[], 1)
elseif A isa Matrix
KS(Matrix{eltype(A)}(undef, 0, 0), eltype(b)[], 1)
else
KS(A, b, 1)
end
else
if A isa SparseMatrixCSC
KS(SparseMatrixCSC(0, 0, [1], Int64[], eltype(A)[]), eltype(b)[])
KS(SparseMatrixCSC(0, 0, [1], Int[], eltype(A)[]), eltype(b)[])
elseif A isa Matrix
KS(Matrix{eltype(A)}(undef, 0, 0), eltype(b)[])
else
Expand Down

0 comments on commit 83385a1

Please sign in to comment.