DOLFINx
0.1.0
DOLFINx C++ interface
|
9 #include "AdjacencyList.h"
10 #include "partition.h"
40 double imbalance = 0.025,
int seed = 0);
49 std::pair<std::vector<int>, std::vector<int>>
51 std::size_t num_passes = 5);
59 std::pair<std::vector<int>, std::vector<int>>
61 std::string scotch_strategy =
"");
std::pair< std::vector< int >, std::vector< int > > compute_gps(const AdjacencyList< std::int32_t > &graph, std::size_t num_passes=5)
Compute reordering (map[old] -> new) using Gibbs-Poole-Stockmeyer (GPS) re-ordering.
Definition: scotch.cpp:28
std::pair< std::vector< int >, std::vector< int > > compute_reordering(const AdjacencyList< std::int32_t > &graph, std::string scotch_strategy="")
Compute graph re-ordering.
Definition: scotch.cpp:37
Interface to SCOTCH-PT.
Definition: scotch.h:18
strategy
SCOTCH partitioning strategies.
Definition: scotch.h:22
This class provides a static adjacency list data structure. It is commonly used to store directed gra...
Definition: AdjacencyList.h:46
std::function< graph::AdjacencyList< std::int32_t >(MPI_Comm comm, int nparts, const AdjacencyList< std::int64_t > &local_graph, std::int32_t num_ghost_nodes, bool ghosting)> partition_fn
Signature of functions for computing the parallel partitioning of a distributed graph.
Definition: partition.h:35
graph::partition_fn partitioner(scotch::strategy strategy=strategy::none, double imbalance=0.025, int seed=0)
Create a graph partitioning function that uses SCOTCH.
Definition: scotch.cpp:119