We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec8e839 commit b0cb22bCopy full SHA for b0cb22b
src/p_range.jl
@@ -1267,13 +1267,16 @@ end
1267
1268
function map_global_to_owner(I,global_to_owner)
1269
Ti = eltype(global_to_owner)
1270
- function map_g_to_o(g)
1271
- if g<1
1272
- return zero(Ti)
+ owners = Vector{Ti}(undef,length(I))
+ for k in 1:length(I)
+ i = I[k]
1273
+ if i<1
1274
+ owners[k] = zero(Ti)
1275
+ continue
1276
end
- global_to_owner[g]
1277
+ owners[k] = global_to_owner[i]
1278
- map_g_to_o.(I)
1279
+ owners
1280
1281
1282
part_id(a::OwnAndGhostIndices) = a.own.owner
0 commit comments