Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d9/d24/namespacedolfinx_1_1graph_1_1kahip.html
DOLFINx  0.5.1
DOLFINx C++ interface
Functions
dolfinx::graph::kahip Namespace Reference

Interfaces to KaHIP parallel partitioner. More...

Functions

graph::partition_fn partitioner (int mode=1, int seed=1, double imbalance=0.03, bool suppress_output=true)
 Create a graph partitioning function that uses KaHIP. More...
 

Detailed Description

Interfaces to KaHIP parallel partitioner.

Function Documentation

◆ partitioner()

graph::partition_fn partitioner ( int  mode = 1,
int  seed = 1,
double  imbalance = 0.03,
bool  suppress_output = true 
)

Create a graph partitioning function that uses KaHIP.

Parameters
[in]modeThe KaHiP partitioning mode (see https://github.com/KaHIP/KaHIP/blob/master/parallel/parallel_src/interface/parhip_interface.h)
[in]seedThe KaHiP random number generator seed
[in]imbalanceThe allowable imbalance
[in]suppress_outputSuppresses KaHIP output if true
Returns
A KaHIP graph partitioning function with specified parameter options