Skip to content

Commit 7bdb365

Browse files
committed
fix in consistent_impl
1 parent a4e1960 commit 7bdb365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/p_sparse_matrix.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ function psparse_assemble_impl(
15341534
rows;
15351535
reuse=Val(false),
15361536
assembly_neighbors_options_cols=(;)) where T<:AbstractSplitMatrix
1537-
1537+
15381538
function setup_cache_snd(A,parts_snd,rows_sa,cols_sa)
15391539
A_ghost_own = A.blocks.ghost_own
15401540
A_ghost_ghost = A.blocks.ghost_ghost
@@ -1845,10 +1845,10 @@ function psparse_consistent_impl(
18451845
end
18461846
length_to_ptrs!(ptrs)
18471847
ndata = ptrs[end]-1
1848-
T = eltype(A)
1848+
Tv = eltype(A)
18491849
I_snd = JaggedArray(zeros(Int,ndata),ptrs)
18501850
J_snd = JaggedArray(zeros(Int,ndata),ptrs)
1851-
V_snd = JaggedArray(zeros(T,ndata),ptrs)
1851+
V_snd = JaggedArray(zeros(Tv,ndata),ptrs)
18521852
k_snd = JaggedArray(zeros(Int32,ndata),ptrs)
18531853
for (k,(i,j,v)) in enumerate(nziterator(A.blocks.own_own))
18541854
li = own_to_local_row[i]
@@ -1932,7 +1932,7 @@ function psparse_consistent_impl(
19321932

19331933
function _psparse_consistent_impl(
19341934
A,
1935-
::Type{<:AbstractSplitMatrix},
1935+
::T,
19361936
rows_co;
19371937
reuse=Val(false))
19381938
@assert matching_own_indices(axes(A,1),PRange(rows_co))

0 commit comments

Comments
 (0)