|
static colors | distribute (Color np, gcoord indices) |
| Create an axial color distribution for the given number of processes.
|
|
static std::vector< axis_definition > | make_axes (Color num_colors, const gcoord &indices) |
| Choose a breakdown of colors per axis and construct axis definitions.
|
|
static std::vector< axis_definition > | make_axes (const colors &color_dist, const gcoord &indices) |
| Create a vector of axis definitions with default settings (hdepth=0, bdepth=0, periodic=false, etc) for the given extents and number of colors.
|
|
Specialization-independent definitions.
Name as base
in an narray
specialization.
enum class domain : std::size_t |
|
strong |
This domain enumeration provides a classification of the various types of partition entities that can be requested out of a topology specialization created using this type.
The following describes what each of the domain enumeration means in a mesh part returned by the coloring algorithm. For the structured mesh partitioning, the partition info is specified per axis.
These domains are used in many of the interface methods to provide information about an axis such as size, extents, and offsets.
- Warning
- Functions using
domain
label the ghosts copied from the other end of a periodic axis as boundary points, not ghosts.
- Deprecated
- Use
axis_color
and axis_layout
.
Enumerator |
---|
logical | the logical, i.e., the owned part of the axis
|
extended | the boundary padding along with the logical part
|
all | the ghost padding along with the logical part
|
boundary_low | the boundary padding on the lower bound of the axis
|
boundary_high | the boundary padding on the upper bound of the axis
|
ghost_low | the ghost padding on the lower bound of the axis
|
ghost_high | the ghost padding on the upper bound of the axis
|
global | global info about the mesh, the meaning depends on what is being queried
|
static std::vector< axis_definition > make_axes |
( |
const colors & | color_dist, |
|
|
const gcoord & | indices ) |
|
static |
Create a vector of axis definitions with default settings (hdepth=0, bdepth=0, periodic=false, etc) for the given extents and number of colors.
The method takes as input the distribution of colors over axes. Then, the end offsets for each color per axis is computed and used to initialize each axis's definition object.
- Parameters
-
color_dist | distribution of colors per axis |
indices | number of entities per axis |
- Returns
- vector of axis definitions