DOLFIN-X
DOLFIN-X C++ interface
Functions
dolfinx::mesh::Partitioning Namespace Reference

Tools for partitioning meshes. More...

Functions

graph::AdjacencyList< std::int32_t > partition_cells (MPI_Comm comm, int n, const mesh::CellType cell_type, const graph::AdjacencyList< std::int64_t > &cells, mesh::GhostMode ghost_mode)
 Compute destination rank for mesh cells in this rank using a graph partitioner. More...
 

Detailed Description

Tools for partitioning meshes.

Function Documentation

◆ partition_cells()

graph::AdjacencyList< std::int32_t > dolfinx::mesh::Partitioning::partition_cells ( MPI_Comm  comm,
int  n,
const mesh::CellType  cell_type,
const graph::AdjacencyList< std::int64_t > &  cells,
mesh::GhostMode  ghost_mode 
)

Compute destination rank for mesh cells in this rank using a graph partitioner.

Parameters
[in]commMPI Communicator
[in]nNumber of partitions
[in]cell_typeCell type
[in]cellsCells on this process. The ith entry in list contains the global indices for the cell vertices. Each cell can appear only once across all processes. The cell vertex indices are not necessarily contiguous globally, i.e. the maximum index across all processes can be greater than the number of vertices. High-order 'nodes', e.g. mid-side points, should not be included.
[in]ghost_modeHow to overlap the cell partitioning: none, shared_facet or shared_vertex
Returns
Destination processes for each cell on this process