Rodin::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::Partitioner interface and supports configurable partitioning strategies via SCOTCH_Strat.

The primary class is Scotch::Partitioner, 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);

Classes

template<class T, class FuncName>
class Exception
Exception type for errors reported by Scotch wrappers.
class Partitioner
Mesh partitioner implemented with the SCOTCH library.