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);
A set of process ranks.
Definition overlaptypes.hh:149
The list of indices which are on the process boundary.
Definition overlaptypes.hh:126
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
std::vector< std::map< ProcessRank, BorderDistance > > OverlapByIndex
Maps each index to a list of processes .
Definition overlaptypes.hh:176
std::vector< IndexDistanceNpeers > OverlapWithPeer
The list of indices which overlap with a peer rank.
Definition overlaptypes.hh:165
unsigned ProcessRank
The type of the rank of a process.
Definition overlaptypes.hh:49
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
std::map< ProcessRank, OverlapWithPeer > OverlapByRank
A type mapping the process rank to the list of indices shared with this peer.
Definition overlaptypes.hh:171
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
std::vector< Index > DomesticOverlapWithPeer
The list of domestic indices are owned by peer rank.
Definition overlaptypes.hh:181
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
A single index intersecting with the process boundary.
Definition overlaptypes.hh:102
Index localIdx
Index of the entity for the local process.
Definition overlaptypes.hh:104
BorderDistance borderDistance
Distance to the process border for the peer (in hops)
Definition overlaptypes.hh:113
ProcessRank peerRank
Rank of the peer process.
Definition overlaptypes.hh:110
Index peerIdx
Index of the entity for the peer process.
Definition overlaptypes.hh:107
This structure stores an index, a process rank, and the number of processes which "see" the degree of...
Definition overlaptypes.hh:92
This structure stores an index, a process rank, and the distance of the degree of freedom to the proc...
Definition overlaptypes.hh:80
This structure stores an index and a process rank.
Definition overlaptypes.hh:60
This structure stores a local index on a peer process and a global index.
Definition overlaptypes.hh:70