dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
Dune::PartitionHelper< Grid > Struct Template Reference

#include <dune/mmesh/misc/partitionhelper.hh>

Inheritance diagram for Dune::PartitionHelper< Grid >:
Inheritance graph

Public Types

using IdType = typename Grid::IdType
 
using ConnectivityType = std::unordered_set< int >
 
using LinksType = std::vector< int >
 
using LeafIterator = typename Grid::LeafIterator::Implementation::HostGridLeafIterator
 

Public Member Functions

 PartitionHelper (const Grid &grid)
 
void distribute ()
 
template<class Entity >
bool contains (PartitionIteratorType pitype, const Entity &e) const
 
bool contains (PartitionIteratorType pitype, int partitionType) const
 
template<class Entity >
PartitionType partitionType (const Entity &e) const
 
PartitionType partitionType (int partition) const
 
void updatePartitions ()
 
const LinksType & links () const
 List of connected ranks.
 
auto & comm () const
 
template<class Entity >
ConnectivityType connectivity (const Entity &e) const
 Get connectivity (list of ranks)
 
template<class Entity >
int rank (const Entity &e) const
 Get rank of an entity.
 
const LeafIterator & leafInteriorBegin () const
 
const LeafIterator & leafInteriorEnd () const
 
void computeInterfacePartitions ()
 Compute partition type for every interface entity.
 

Static Public Attributes

static constexpr int dim = Grid::dimension
 

Member Typedef Documentation

◆ ConnectivityType

template<class Grid >
using Dune::PartitionHelper< Grid >::ConnectivityType = std::unordered_set<int>

◆ IdType

template<class Grid >
using Dune::PartitionHelper< Grid >::IdType = typename Grid::IdType

◆ LeafIterator

template<class Grid >
using Dune::PartitionHelper< Grid >::LeafIterator = typename Grid::LeafIterator::Implementation::HostGridLeafIterator

◆ LinksType

template<class Grid >
using Dune::PartitionHelper< Grid >::LinksType = std::vector<int>

Constructor & Destructor Documentation

◆ PartitionHelper()

template<class Grid >
Dune::PartitionHelper< Grid >::PartitionHelper ( const Grid &  grid)
inline

Member Function Documentation

◆ comm()

template<class Grid >
auto & Dune::PartitionHelper< Grid >::comm ( ) const
inline

◆ computeInterfacePartitions()

template<class Grid >
void Dune::PartitionHelper< Grid >::computeInterfacePartitions ( )
inline

Compute partition type for every interface entity.

◆ connectivity()

template<class Grid >
template<class Entity >
ConnectivityType Dune::PartitionHelper< Grid >::connectivity ( const Entity &  e) const
inline

Get connectivity (list of ranks)

◆ contains() [1/2]

template<class Grid >
template<class Entity >
bool Dune::PartitionHelper< Grid >::contains ( PartitionIteratorType  pitype,
const Entity &  e 
) const
inline

◆ contains() [2/2]

template<class Grid >
bool Dune::PartitionHelper< Grid >::contains ( PartitionIteratorType  pitype,
int  partitionType 
) const
inline

◆ distribute()

template<class Grid >
void Dune::PartitionHelper< Grid >::distribute ( )
inline

◆ leafInteriorBegin()

template<class Grid >
const LeafIterator & Dune::PartitionHelper< Grid >::leafInteriorBegin ( ) const
inline

◆ leafInteriorEnd()

template<class Grid >
const LeafIterator & Dune::PartitionHelper< Grid >::leafInteriorEnd ( ) const
inline

◆ links()

template<class Grid >
const LinksType & Dune::PartitionHelper< Grid >::links ( ) const
inline

List of connected ranks.

◆ partitionType() [1/2]

template<class Grid >
template<class Entity >
PartitionType Dune::PartitionHelper< Grid >::partitionType ( const Entity &  e) const
inline

◆ partitionType() [2/2]

template<class Grid >
PartitionType Dune::PartitionHelper< Grid >::partitionType ( int  partition) const
inline

◆ rank()

template<class Grid >
template<class Entity >
int Dune::PartitionHelper< Grid >::rank ( const Entity &  e) const
inline

Get rank of an entity.

◆ updatePartitions()

template<class Grid >
void Dune::PartitionHelper< Grid >::updatePartitions ( )
inline

Member Data Documentation

◆ dim

template<class Grid >
constexpr int Dune::PartitionHelper< Grid >::dim = Grid::dimension
staticconstexpr

The documentation for this struct was generated from the following file: