hemocell
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
hemo::HemoCellGatheringFunctional< GatherType > Class Template Reference

#include <hemoCellFunctional.h>

Inheritance diagram for hemo::HemoCellGatheringFunctional< GatherType >:
Inheritance graph
[legend]
Collaboration diagram for hemo::HemoCellGatheringFunctional< GatherType >:
Collaboration graph
[legend]

Classes

union  byteint
 
struct  IDandGatherType
 

Public Member Functions

 HemoCellGatheringFunctional (std::map< int, GatherType > &gatherValues_)
 
void getModificationPattern (std::vector< bool > &isWritten) const
 
plb::BlockDomain::DomainT appliesTo () const
 
void getTypeOfModification (std::vector< plb::modif::ModifT > &modified) const
 

Static Public Member Functions

template<typename Key >
static void gather (std::map< Key, GatherType > &gatherValues)
 Combine the maps of all ranks on every rank. Collective.
 
template<typename Key >
static void gatherToRoot (std::map< Key, GatherType > &gatherValues, int root=0)
 Combine the maps of all ranks on rank root only. Collective.
 

Public Attributes

std::map< int, GatherType > & gatherValues
 

Static Private Member Functions

template<typename Key >
static void exchange (std::map< Key, GatherType > &gatherValues, int root)
 

Constructor & Destructor Documentation

◆ HemoCellGatheringFunctional()

template<class GatherType >
hemo::HemoCellGatheringFunctional< GatherType >::HemoCellGatheringFunctional ( std::map< int, GatherType > &  gatherValues_)
inline

Member Function Documentation

◆ appliesTo()

template<class GatherType >
plb::BlockDomain::DomainT hemo::HemoCellGatheringFunctional< GatherType >::appliesTo ( ) const
inline

◆ exchange()

template<class GatherType >
template<typename Key >
static void hemo::HemoCellGatheringFunctional< GatherType >::exchange ( std::map< Key, GatherType > &  gatherValues,
int  root 
)
inlinestaticprivate

◆ gather()

template<class GatherType >
template<typename Key >
static void hemo::HemoCellGatheringFunctional< GatherType >::gather ( std::map< Key, GatherType > &  gatherValues)
inlinestatic

Combine the maps of all ranks on every rank. Collective.

Afterwards every rank holds the entries of all ranks; for a key present on several ranks the value of the highest rank wins. The data volume is the total map size on every rank, so use gatherToRoot() when only one rank needs the result (e.g. for writing output).

◆ gatherToRoot()

template<class GatherType >
template<typename Key >
static void hemo::HemoCellGatheringFunctional< GatherType >::gatherToRoot ( std::map< Key, GatherType > &  gatherValues,
int  root = 0 
)
inlinestatic

Combine the maps of all ranks on rank root only. Collective.

On root the result equals that of gather(); the other ranks keep their own entries unchanged.

◆ getModificationPattern()

template<class GatherType >
void hemo::HemoCellGatheringFunctional< GatherType >::getModificationPattern ( std::vector< bool > &  isWritten) const
inline

◆ getTypeOfModification()

template<class GatherType >
void hemo::HemoCellGatheringFunctional< GatherType >::getTypeOfModification ( std::vector< plb::modif::ModifT > &  modified) const
inline

Member Data Documentation

◆ gatherValues

template<class GatherType >
std::map<int, GatherType>& hemo::HemoCellGatheringFunctional< GatherType >::gatherValues