Skip to content

Commit

Permalink
Fixing doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Feb 9, 2024
1 parent ec8e839 commit b0cb22b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/p_range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1267,13 +1267,16 @@ end

function map_global_to_owner(I,global_to_owner)
Ti = eltype(global_to_owner)
function map_g_to_o(g)
if g<1
return zero(Ti)
owners = Vector{Ti}(undef,length(I))
for k in 1:length(I)
i = I[k]
if i<1
owners[k] = zero(Ti)
continue
end
global_to_owner[g]
owners[k] = global_to_owner[i]
end
map_g_to_o.(I)
owners
end

part_id(a::OwnAndGhostIndices) = a.own.owner
Expand Down

0 comments on commit b0cb22b

Please sign in to comment.