Skip to content

Commit e3becf6

Browse files
authored
Merge pull request #199 from dalviebenu/patch-1
Update primitives.jl
2 parents 310ced7 + 8f4d62b commit e3becf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/primitives.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,14 +1019,14 @@ end
10191019

10201020
function exchange_impl!(rcv,snd,graph,setup,::Type{T}) where T<:AbstractVector
10211021
@assert is_consistent(graph)
1022-
@assert eltype(rcv) <: JaggedArray
1022+
@assert eltype(rcv) <: AbstractJaggedArray
10231023
snd_ids = graph.snd
10241024
rcv_ids = graph.rcv
10251025
@assert length(rcv_ids) == length(rcv)
10261026
@assert length(rcv_ids) == length(snd)
10271027
for rcv_id in 1:length(rcv_ids)
10281028
for (i, snd_id) in enumerate(rcv_ids[rcv_id])
1029-
snd_snd_id = JaggedArray(snd[snd_id])
1029+
snd_snd_id = jagged_array(snd[snd_id])
10301030
j = first(findall(k->k==rcv_id,snd_ids[snd_id]))
10311031
ptrs_rcv = rcv[rcv_id].ptrs
10321032
ptrs_snd = snd_snd_id.ptrs

0 commit comments

Comments
 (0)