Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Aug 21, 2023
1 parent e081f21 commit bbc3e5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/p_range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -699,15 +699,15 @@ end
"""
partition_from_color(ranks,global_to_color;multicast=false,source=MAIN)
Build an arbitrary 1d partition by defining the parts via the argument `global_to_color`.
Build an arbitrary 1d partition by defining the parts via the argument `global_to_color` (see below).
The output is a vector of vectors containing the indices in each component of
the partition. The `eltype` of the result implements the [`AbstractLocalIndices`](@ref)
interface.
# Arguments
- `ranks`: Array containing the distribution of ranks.
- `global_to_color`: If `multicast==false`, `global_to_color[gid]` contains the part id that own the global id `gid`. If `multicast==true`, then `global_to_color[source][gid]` contains the part id that owns the global id `gid`.
- `global_to_color`: If `multicast==false`, `global_to_color[gid]` contains the part id that owns the global id `gid`. If `multicast==true`, then `global_to_color[source][gid]` contains the part id that owns the global id `gid`.
# Key-word arguments
- `multicast=false`
Expand All @@ -725,7 +725,7 @@ function partition_from_color(ranks,global_to_color;multicast=false,source=MAIN)
map(ranks) do rank
nglobal = length(global_to_owner)
own_to_global = findall(owner->owner==rank,global_to_owner)
ghost_to_global = Int[]
ghost_to_global = Int[]
ghost_to_owner = Int32[]
own = OwnIndices(nglobal,rank,own_to_global)
ghost = GhostIndices(nglobal,ghost_to_global,ghost_to_owner)
Expand Down

0 comments on commit bbc3e5e

Please sign in to comment.