Scotch namespace
PT-Scotch mesh partitioning integration.
The Scotch module provides a graph-based mesh partitioner using the PT-Scotch library. It implements the Geometry:: interface and supports configurable partitioning strategies via SCOTCH_Strat.
The primary class is Scotch::, which partitions cells of a local mesh into a given number of parts. The resulting partition can be used with the Sharder to distribute the mesh for MPI computations.
#include <Rodin/Scotch/MeshPartitioner.h> Scotch::Partitioner partitioner(mesh); partitioner.partition(numRanks); // partition into numRanks parts size_t part = partitioner.getPartition(cellIndex);