GEOS
Namespaces | Functions
PTScotchInterface.hpp File Reference
#include "common/DataTypes.hpp"
#include "common/MpiWrapper.hpp"

Go to the source code of this file.

Namespaces

 geos
 

Functions

array1d< int64_t > geos::ptscotch::partition (ArrayOfArraysView< int64_t const, int64_t > const &graph, int64_t const numParts, MPI_Comm comm)
 Partition a mesh according to its dual graph. More...
 

Function Documentation

◆ partition()

array1d< int64_t > geos::ptscotch::partition ( ArrayOfArraysView< int64_t const, int64_t > const &  graph,
int64_t const  numParts,
MPI_Comm  comm 
)

Partition a mesh according to its dual graph.

Parameters
graphthe input graph (edges of locally owned nodes)
numPartstarget number of partitions
commthe MPI communicator of processes to partition over
Returns
an array of target partitions for each element in local mesh