DOLFIN-X
DOLFIN-X C++ interface
Static Public Member Functions | List of all members
dolfinx::mesh::Partitioning Class Reference

Tools for partitioning meshes. More...

#include <Partitioning.h>

Static Public Member Functions

static std::vector< bool > compute_vertex_exterior_markers (const mesh::Topology &topology_local)
 
static 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.

Member Function Documentation

◆ compute_vertex_exterior_markers()

std::vector< bool > Partitioning::compute_vertex_exterior_markers ( const mesh::Topology topology_local)
static
Todo:
Move elsewhere

Compute markers for interior/boundary vertices

Parameters
[in]topology_localLocal topology
Returns
Array where the ith entry is true if the ith vertex is on the boundary

◆ partition_cells()

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

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

The documentation for this class was generated from the following files: