Lagrange
lagrange::partitioning Namespace Reference

Mesh partitioning using METIS. More...

Typedefs

using index_t = int32_t
 Index type used by METIS.
 

Functions

template<typename DerivedF >
Eigen::Matrix< index_t, Eigen::Dynamic, 1 > partition_mesh_vertices (const Eigen::MatrixBase< DerivedF > &facets, index_t num_partitions)
 Partition mesh vertices into num_partitions using METIS. More...
 

Detailed Description

Mesh partitioning using METIS.

Function Documentation

◆ partition_mesh_vertices()

Eigen::Matrix< index_t, Eigen::Dynamic, 1 > partition_mesh_vertices ( const Eigen::MatrixBase< DerivedF > &  facets,
index_t  num_partitions 
)

Partition mesh vertices into num_partitions using METIS.

Parameters
[in]facets#F x k array of facet indices.
[in]num_partitionsNumber of partitions to produce.
Template Parameters
DerivedFType of facet array.
Returns
#V x 1 array of partition ids.