Opm::Linear::ForeignOverlapFromBCRSMatrix Class Reference This class creates and manages the foreign overlap given an initial list of border indices and a BCRS matrix. More...
Detailed DescriptionThis class creates and manages the foreign overlap given an initial list of border indices and a BCRS matrix. The foreign overlap are all (row) indices which overlap with the some of the current process's local indices. Constructor & Destructor Documentation◆ ForeignOverlapFromBCRSMatrix() [1/2]
◆ ForeignOverlapFromBCRSMatrix() [2/2]
template<class BCRSMatrix >
Constructs the foreign overlap given a BCRS matrix and an initial list of border indices. References borderList(), computeMasterRanks_(), createLocalIndices_(), extendForeignOverlap_(), foreignOverlapByLocalIndex_, groupForeignOverlapByRank_(), localBorderIndices_, myRank_, nativeToLocal(), neighborPeerSet_, numLocal(), numNative_, overlapSize(), overlapSize_, peerSet_, Opm::Linear::SeedList::update(), and Opm::Linear::PeerSet::update(). Member Function Documentation◆ addNonNeighborOverlapIndices_()
template<class BCRSMatrix >
References Opm::Linear::IndexRankDist::borderDistance, Opm::Linear::BorderIndex::borderDistance, foreignOverlapByLocalIndex_, Opm::Linear::IndexRankDist::index, isBorder(), Opm::Linear::BorderIndex::localIdx, localToPeerIdx_(), nativeToLocal(), neighborPeerSet(), Opm::Linear::BorderIndex::peerIdx, Opm::Linear::IndexRankDist::peerRank, Opm::Linear::BorderIndex::peerRank, and peerSet_. Referenced by extendForeignOverlap_(). ◆ blackList()
Returns the object which represents the black-listed native indices. References blackList_. ◆ borderList()
Returns the list of indices which intersect the process border. References borderList_. Referenced by ForeignOverlapFromBCRSMatrix(). ◆ computeMasterRanks_()
References foreignOverlapByLocalIndex_, isBorder(), masterRank(), masterRank_, myRank_, and numLocal_. Referenced by ForeignOverlapFromBCRSMatrix(). ◆ createLocalIndices_()
References blackList_, Opm::Linear::BlackList::hasIndex(), localToNativeIndices_, nativeToLocalIndices_, numLocal_, and numNative_. Referenced by ForeignOverlapFromBCRSMatrix(). ◆ extendForeignOverlap_()
template<class BCRSMatrix >
References addNonNeighborOverlapIndices_(), Opm::Linear::IndexRankDist::borderDistance, extendForeignOverlap_(), foreignOverlapByLocalIndex_, Opm::Linear::IndexRankDist::index, nativeToLocal(), overlapSize(), and Opm::Linear::IndexRankDist::peerRank. Referenced by extendForeignOverlap_(), and ForeignOverlapFromBCRSMatrix(). ◆ foreignOverlapByLocalIndex()
Return the map of (peer rank, border distance) for a given local index. References foreignOverlapByLocalIndex_, and isLocal(). Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::sendIndicesToPeer_(). ◆ foreignOverlapWithPeer()
Return the list of (local indices, border distance, number of processes) triples which are in the overlap of a given peer rank. References foreignOverlapByRank_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::check(), Opm::Linear::DomesticOverlapFromBCRSMatrix::foreignOverlapOffsetToDomesticIdx(), Opm::Linear::DomesticOverlapFromBCRSMatrix::foreignOverlapSize(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::sendIndicesToPeer_(). ◆ groupForeignOverlapByRank_()
◆ iAmMasterOf()
Return true if the current rank is the "master" of an index. If the index is at the interior of some process, we define this process as its master, if the index is on the boundary, then the master is defined as the process with the lowest rank. References masterRank_, and myRank_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::iAmMasterOf(). ◆ isBorder()
Returns true iff a local index is a border index. References localBorderIndices_. Referenced by addNonNeighborOverlapIndices_(), computeMasterRanks_(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::isBorder(). ◆ isBorderWith()
Returns true iff a local index is a border index shared with a given peer process. References foreignOverlapByLocalIndex_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::isBorderWith(). ◆ isFrontFor()
Returns whether a given local index is on the front of a given peer rank. References foreignOverlapByLocalIndex_, and overlapSize_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::isFrontFor(). ◆ isInOverlap()
Returns true if a given local index is in the foreign overlap of any rank. References foreignOverlapByLocalIndex_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::isInOverlap(). ◆ isLocal()
Returns true iff a domestic index is local. References numLocal(). Referenced by foreignOverlapByLocalIndex(), Opm::Linear::DomesticOverlapFromBCRSMatrix::receiveIndicesFromPeer_(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::updateMasterRanks_(). ◆ localToNative()Convert a local index to a native one. References localToNativeIndices_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::domesticToNative(). ◆ localToPeerIdx_()
References borderList_. Referenced by addNonNeighborOverlapIndices_(). ◆ masterRank()
Return the rank of the master process of an index. References masterRank_. Referenced by computeMasterRanks_(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::updateMasterRanks_(). ◆ nativeToLocal()Convert a native index to a local one. If a given native index is not in the set of local indices, this method returns -1. References nativeToLocalIndices_. Referenced by addNonNeighborOverlapIndices_(), extendForeignOverlap_(), ForeignOverlapFromBCRSMatrix(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::nativeToDomestic(). ◆ neighborPeerSet()
Return the set of process ranks which share a border index with the current process. References neighborPeerSet_. Referenced by addNonNeighborOverlapIndices_(). ◆ numFront()
Returns the number of front indices of a peer process in the local partition. References foreignOverlapByRank_, and overlapSize_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::numFront(). ◆ numLocal()
Returns the number of local indices. References numLocal_. Referenced by ForeignOverlapFromBCRSMatrix(), groupForeignOverlapByRank_(), isLocal(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::numLocal(). ◆ numNative()
Returns the number of native indices. References numNative_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::numNative(). ◆ numPeers()
Return the number of peer ranks for which a given local index is visible. References foreignOverlapByLocalIndex_. ◆ overlapSize()
Returns the size of the overlap region. References overlapSize_. Referenced by extendForeignOverlap_(), ForeignOverlapFromBCRSMatrix(), Opm::Linear::DomesticOverlapFromBCRSMatrix::isFront(), and Opm::Linear::DomesticOverlapFromBCRSMatrix::overlapSize(). ◆ peerHasIndex()
Returns true iff a local index is seen by a peer rank. References foreignOverlapByLocalIndex_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::peerHasIndex(). ◆ peerSet()
Return the set of process ranks which share an overlap with the current process. References peerSet_. Referenced by Opm::Linear::DomesticOverlapFromBCRSMatrix::buildDomesticOverlap_(). ◆ print()
Print the foreign overlap for debugging purposes. References foreignOverlapByRank_. Member Data Documentation◆ blackList_
Referenced by blackList(), and createLocalIndices_(). ◆ borderList_
Referenced by borderList(), and localToPeerIdx_(). ◆ foreignOverlapByLocalIndex_
◆ foreignOverlapByRank_
Referenced by foreignOverlapWithPeer(), groupForeignOverlapByRank_(), numFront(), and print(). ◆ localBorderIndices_
Referenced by ForeignOverlapFromBCRSMatrix(), and isBorder(). ◆ localToNativeIndices_
Referenced by createLocalIndices_(), and localToNative(). ◆ masterRank_
Referenced by computeMasterRanks_(), iAmMasterOf(), and masterRank(). ◆ myRank_
Referenced by computeMasterRanks_(), ForeignOverlapFromBCRSMatrix(), and iAmMasterOf(). ◆ nativeToLocalIndices_
Referenced by createLocalIndices_(), and nativeToLocal(). ◆ neighborPeerSet_
Referenced by ForeignOverlapFromBCRSMatrix(), and neighborPeerSet(). ◆ numLocal_
Referenced by computeMasterRanks_(), createLocalIndices_(), and numLocal(). ◆ numNative_
Referenced by createLocalIndices_(), ForeignOverlapFromBCRSMatrix(), and numNative(). ◆ overlapSize_
Referenced by ForeignOverlapFromBCRSMatrix(), isFrontFor(), numFront(), and overlapSize(). ◆ peerSet_
Referenced by addNonNeighborOverlapIndices_(), ForeignOverlapFromBCRSMatrix(), and peerSet(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||