23#ifndef VULPES_GEOMETRY_AGGLOMERATION_PARMETIS_AGGLOMERATION_HPP_
24#define VULPES_GEOMETRY_AGGLOMERATION_PARMETIS_AGGLOMERATION_HPP_
60template <
typename MeshType>
101 const MeshType& mesh,
104 bool return_hierarchy =
true,
105 const std::string& segregated_tag =
"",
106 const IndVec& subset = {})
override;
130 const MeshType& mesh,
131 std::size_t n_groups,
153 const MeshType& mesh, std::size_t n_groups,
const IndVec& subgraph);
156extern template class ParmetisAgglomeration<Mesh2D<double, int32_t>>;
157extern template class ParmetisAgglomeration<Mesh3D<double, int32_t>>;
Defines an abstract interface for mesh agglomeration strategies.
Definition abs_agg_model.hpp:71
double float_t
Definition abs_agg_model.hpp:73
datastructure::IndexTracker< index_t > IndexTrackerType
Definition abs_agg_model.hpp:78
datastructure::CrsMap< index_t, index_t > MapType
Definition abs_agg_model.hpp:76
std::variant< index_t, float_t > ParamType
Definition abs_agg_model.hpp:77
std::vector< index_t > IndVec
Definition abs_agg_model.hpp:75
int64_t index_t
Definition abs_agg_model.hpp:74
IndVec splitSubsetKWay(const MeshType &mesh, std::size_t n_groups, const IndVec &subgraph)
Definition parmetis_agglomeration.cpp:37
typename MeshType::float_t MeshFloatType
Definition parmetis_agglomeration.hpp:67
typename AbstractAgglomerationModel< MeshType >::IndVec IndVec
Definition parmetis_agglomeration.hpp:71
std::vector< MeshType > agglomerate(const MeshType &mesh, MethodType method_type, ParamType params, bool return_hierarchy=true, const std::string &segregated_tag="", const IndVec &subset={}) override
Agglomerate using a selected strategy with ParMETIS as backend.
Definition parmetis_agglomeration.cpp:126
typename AbstractAgglomerationModel< MeshType >::float_t ClassFloatType
Definition parmetis_agglomeration.hpp:63
Cell< MeshType::self_dim, MeshFloatType, MeshIndexType > CellType
Definition parmetis_agglomeration.hpp:70
typename MeshType::index_t MeshIndexType
Definition parmetis_agglomeration.hpp:68
ParmetisAgglomeration()=default
static constexpr ClassIndexType dim
Definition parmetis_agglomeration.hpp:77
typename AbstractAgglomerationModel< MeshType >::MapType MapType
Definition parmetis_agglomeration.hpp:65
typename AbstractAgglomerationModel< MeshType >::IndexTrackerType IndexTrackerType
Definition parmetis_agglomeration.hpp:72
IndVec bisectSubGraph(const MeshType &mesh, const IndVec &subgraph) override
2-way split of subset using ParMETIS, then enforce bisection labels.
Definition parmetis_agglomeration.cpp:120
typename AbstractAgglomerationModel< MeshType >::ParamType ParamType
Definition parmetis_agglomeration.hpp:75
void directKWay(const MeshType &mesh, std::size_t n_groups, IndexTrackerType &indicator, const std::vector< bool > &agglomerate) override
Direct k-way partition via ParMETIS on the (sub)dual graph.
Definition parmetis_agglomeration.cpp:156
typename AbstractAgglomerationModel< MeshType >::index_t ClassIndexType
Definition parmetis_agglomeration.hpp:64
Definition abs_agg_model.cpp:40
MethodType
Definition abs_agg_model.hpp:41
std::conditional_t< Dim==2, Cell2D< FloatType, IndexType >, Cell3D< FloatType, IndexType > > Cell
Definition cell.hpp:267
Definition cell_manager.hpp:38