29 #ifndef EWOMS_OVERLAP_TYPES_HH
30 #define EWOMS_OVERLAP_TYPES_HH
49 typedef unsigned ProcessRank;
54 typedef unsigned BorderDistance;
83 BorderDistance borderDistance;
94 BorderDistance borderDistance;
120 typedef std::list<BorderIndex> BorderList;
128 void update(
const BorderList& borderList)
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);
151 void update(
const BorderList& borderList)
155 auto it = borderList.begin();
156 const auto& endIt = borderList.end();
157 for (; it != endIt; ++it)
158 this->insert(it->peerRank);
165 typedef std::vector<IndexDistanceNpeers> OverlapWithPeer;
171 typedef std::map<ProcessRank, OverlapWithPeer> OverlapByRank;
176 typedef std::vector<std::map<ProcessRank, BorderDistance> > OverlapByIndex;
181 typedef std::vector<Index> DomesticOverlapWithPeer;
187 typedef std::map<ProcessRank, DomesticOverlapWithPeer> DomesticOverlapByRank;
The list of indices which are on the process boundary.
Definition: overlaptypes.hh:125
Index peerIdx
Index of the entity for the peer process.
Definition: overlaptypes.hh:107
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
This structure stores an index, a process rank, and the number of processes which "see" the degree of...
Definition: overlaptypes.hh:91
This structure stores a local index on a peer process and a global index.
Definition: overlaptypes.hh:69
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