29 #ifndef EWOMS_OVERLAP_TYPES_HH 30 #define EWOMS_OVERLAP_TYPES_HH 132 auto it = borderList.begin();
133 const auto& endIt = borderList.end();
134 for (; it != endIt; ++it) {
136 ird.index = it->localIdx;
137 ird.peerRank = it->peerRank;
138 ird.borderDistance = it->borderDistance;
140 this->push_back(ird);
155 auto it = borderList.begin();
156 const auto& endIt = borderList.end();
157 for (; it != endIt; ++it)
158 this->insert(it->peerRank);
std::vector< std::map< ProcessRank, BorderDistance > > OverlapByIndex
Maps each index to a list of processes .
Definition: overlaptypes.hh:176
std::vector< Index > DomesticOverlapWithPeer
The list of domestic indices are owned by peer rank.
Definition: overlaptypes.hh:181
The list of indices which are on the process boundary.
Definition: overlaptypes.hh:125
Definition: baseauxiliarymodule.hh:37
std::vector< IndexDistanceNpeers > OverlapWithPeer
The list of indices which overlap with a peer rank.
Definition: overlaptypes.hh:165
Index peerIdx
Index of the entity for the peer process.
Definition: overlaptypes.hh:107
unsigned BorderDistance
The type representing the distance of an index to the border.
Definition: overlaptypes.hh:54
int Index
The type of an index of a degree of freedom.
Definition: overlaptypes.hh:44
This structure stores an index and a process rank.
Definition: overlaptypes.hh:59
Index localIdx
Index of the entity for the local process.
Definition: overlaptypes.hh:104
ProcessRank peerRank
Rank of the peer process.
Definition: overlaptypes.hh:110
BorderDistance borderDistance
Distance to the process border for the peer (in hops)
Definition: overlaptypes.hh:113
std::map< ProcessRank, OverlapWithPeer > OverlapByRank
A type mapping the process rank to the list of indices shared with this peer.
Definition: overlaptypes.hh:171
This structure stores an index, a process rank, and the number of processes which "see" the degree of...
Definition: overlaptypes.hh:91
unsigned ProcessRank
The type of the rank of a process.
Definition: overlaptypes.hh:49
std::map< ProcessRank, DomesticOverlapWithPeer > DomesticOverlapByRank
A type mapping the process rank to the list of domestic indices which are owned by the peer...
Definition: overlaptypes.hh:187
This structure stores a local index on a peer process and a global index.
Definition: overlaptypes.hh:69
std::list< BorderIndex > BorderList
This class managages a list of indices which are on the border of a process' partition of the grid...
Definition: overlaptypes.hh:120
This structure stores an index, a process rank, and the distance of the degree of freedom to the proc...
Definition: overlaptypes.hh:79
A set of process ranks.
Definition: overlaptypes.hh:148
A single index intersecting with the process boundary.
Definition: overlaptypes.hh:101