FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::PartiScotch Class Reference

Public Member Functions

 PartiScotch (const Dist::Comm &comm, Index min_elems=1000U, int max_work_procs=1000)
 
Adjacency::Graph build_elems_at_rank () const
 
template<int nf_>
bool execute (const IndexSet< nf_ > &faces_at_elem, Index num_parts, const std::vector< Real > &weights)
 

Protected Member Functions

bool _broadcast_coloring (bool ok)
 
void _create_subgraph (const Adjacency::Graph &faces_at_elem, Index num_parts)
 
bool _execute (const std::vector< Real > &weights)
 
bool _gather_coloring ()
 

Private Attributes

Adjacency::Coloring _coloring
 Elements-at-rank coloring. More...
 
const Dist::Comm & _comm
 Main communicator. More...
 
Index _first_elem {0}
 First element of this process. More...
 
Index _global_num_elements {0}
 Global number of elements. More...
 
Index _local_num_elements {0}
 Local number of elements. More...
 
int _max_work_procs
 Maximum number of ranks to use for partitioning More...
 
Index _min_elems
 Mininum number of elements on each rank. More...
 
Index _num_parts {0}
 Desired number of partitions. More...
 
std::vector< Index > _parts
 Element partitioning. More...
 
Adjacency::Graph _subgraph
 Subgraph for this rank. More...
 
Dist::Comm _work_comm
 Communicator for performing partitioning. More...
 

Detailed Description

Definition at line 19 of file parti_scotch.hpp.

Constructor & Destructor Documentation

◆ PartiScotch()

FEAT::Geometry::PartiScotch::PartiScotch ( const Dist::Comm &  comm,
Index  min_elems = 1000U,
int  max_work_procs = 1000 
)
inlineexplicit

Definition at line 56 of file parti_scotch.hpp.

Member Function Documentation

◆ _broadcast_coloring()

bool FEAT::Geometry::PartiScotch::_broadcast_coloring ( bool  ok)
protected

Definition at line 359 of file parti_scotch.cpp.

◆ _create_subgraph()

void FEAT::Geometry::PartiScotch::_create_subgraph ( const Adjacency::Graph &  faces_at_elem,
Index  num_parts 
)
protected

Definition at line 166 of file parti_scotch.cpp.

◆ _execute()

bool FEAT::Geometry::PartiScotch::_execute ( const std::vector< Real > &  weights)
protected

Definition at line 243 of file parti_scotch.cpp.

◆ _gather_coloring()

bool FEAT::Geometry::PartiScotch::_gather_coloring ( )
protected

Definition at line 296 of file parti_scotch.cpp.

◆ build_elems_at_rank()

Adjacency::Graph FEAT::Geometry::PartiScotch::build_elems_at_rank ( ) const
inline

Definition at line 77 of file parti_scotch.hpp.

◆ execute()

template<int nf_>
bool FEAT::Geometry::PartiScotch::execute ( const IndexSet< nf_ > &  faces_at_elem,
Index  num_parts,
const std::vector< Real > &  weights 
)
inline

Definition at line 67 of file parti_scotch.hpp.

Member Data Documentation

◆ _coloring

Adjacency::Coloring FEAT::Geometry::PartiScotch::_coloring
private

Elements-at-rank coloring.

Definition at line 52 of file parti_scotch.hpp.

◆ _comm

const Dist::Comm& FEAT::Geometry::PartiScotch::_comm
private

Main communicator.

Definition at line 22 of file parti_scotch.hpp.

◆ _first_elem

Index FEAT::Geometry::PartiScotch::_first_elem {0}
private

First element of this process.

Definition at line 43 of file parti_scotch.hpp.

◆ _global_num_elements

Index FEAT::Geometry::PartiScotch::_global_num_elements {0}
private

Global number of elements.

Definition at line 31 of file parti_scotch.hpp.

◆ _local_num_elements

Index FEAT::Geometry::PartiScotch::_local_num_elements {0}
private

Local number of elements.

Definition at line 34 of file parti_scotch.hpp.

◆ _max_work_procs

int FEAT::Geometry::PartiScotch::_max_work_procs
private

Maximum number of ranks to use for partitioning

Definition at line 40 of file parti_scotch.hpp.

◆ _min_elems

Index FEAT::Geometry::PartiScotch::_min_elems
private

Mininum number of elements on each rank.

Definition at line 37 of file parti_scotch.hpp.

◆ _num_parts

Index FEAT::Geometry::PartiScotch::_num_parts {0}
private

Desired number of partitions.

Definition at line 28 of file parti_scotch.hpp.

◆ _parts

std::vector<Index> FEAT::Geometry::PartiScotch::_parts
private

Element partitioning.

Definition at line 49 of file parti_scotch.hpp.

◆ _subgraph

Adjacency::Graph FEAT::Geometry::PartiScotch::_subgraph
private

Subgraph for this rank.

Definition at line 46 of file parti_scotch.hpp.

◆ _work_comm

Dist::Comm FEAT::Geometry::PartiScotch::_work_comm
private

Communicator for performing partitioning.

Definition at line 25 of file parti_scotch.hpp.


The documentation for this class was generated from the following files: