Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 32-bit OS compatibility with Krylov wrappers #458

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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)

Check warning on line 184 in src/iterative_wrappers.jl

View check run for this annotation

Codecov / codecov/patch

src/iterative_wrappers.jl#L184

Added line #L184 was not covered by tests
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
Loading