Structure for communicating between processors. More...
Public Member Functions | |
commsStruct () | |
Construct null. More... | |
commsStruct (const label, const labelList &, const labelList &, const labelList &) | |
Construct from components. More... | |
commsStruct (const label nProcs, const label myProcID, const label, const labelList &, const labelList &) | |
Construct from components; construct allNotBelow_. More... | |
label | above () const |
const labelList & | below () const |
const labelList & | allBelow () const |
const labelList & | allNotBelow () const |
bool | operator== (const commsStruct &) const |
bool | operator!= (const commsStruct &) const |
Private Attributes | |
label | above_ |
procID of above processor More... | |
labelList | below_ |
procIDs of processors directly below me More... | |
labelList | allBelow_ |
procIDs of all processors below (so not just directly below) More... | |
labelList | allNotBelow_ |
procIDs of all processors not below. (inverse set of More... | |
Friends | |
Ostream & | operator<< (Ostream &, const commsStruct &) |
Structure for communicating between processors.
Definition at line 76 of file UPstream.H.
commsStruct | ( | ) |
Construct null.
Definition at line 31 of file UPstreamCommsStruct.C.
commsStruct | ( | const label | above, |
const labelList & | below, | ||
const labelList & | allBelow, | ||
const labelList & | allNotBelow | ||
) |
Construct from components.
Definition at line 41 of file UPstreamCommsStruct.C.
commsStruct | ( | const label | nProcs, |
const label | myProcID, | ||
const label | above, | ||
const labelList & | below, | ||
const labelList & | allBelow | ||
) |
Construct from components; construct allNotBelow_.
Definition at line 56 of file UPstreamCommsStruct.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and UPstream::nProcs().
|
inline |
Definition at line 125 of file UPstream.H.
References UPstream::commsStruct::above_.
Referenced by Pstream::combineGather(), Pstream::combineScatter(), Pstream::gather(), Pstream::gatherList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), UPstream::commsStruct::operator==(), regIOobject::read(), IOdictionary::readFile(), Pstream::scatter(), and Pstream::scatterList().
|
inline |
Definition at line 130 of file UPstream.H.
References UPstream::commsStruct::below_.
Referenced by Pstream::combineGather(), Pstream::combineScatter(), Pstream::gather(), Pstream::gatherList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Pstream::mapCombineGather(), Pstream::mapCombineScatter(), UPstream::commsStruct::operator==(), regIOobject::read(), IOdictionary::readFile(), Pstream::scatter(), and Pstream::scatterList().
|
inline |
Definition at line 135 of file UPstream.H.
References UPstream::commsStruct::allBelow_.
Referenced by Pstream::gatherList().
|
inline |
Definition at line 140 of file UPstream.H.
References UPstream::commsStruct::allNotBelow_.
Referenced by Pstream::scatterList().
bool operator== | ( | const commsStruct & | comm | ) | const |
Definition at line 93 of file UPstreamCommsStruct.C.
References UPstream::commsStruct::above(), and UPstream::commsStruct::below().
bool operator!= | ( | const commsStruct & | comm | ) | const |
Definition at line 105 of file UPstreamCommsStruct.C.
References Foam::operator==().
|
friend |
|
private |
procID of above processor
Definition at line 81 of file UPstream.H.
Referenced by UPstream::commsStruct::above(), and Foam::operator<<().
|
private |
procIDs of processors directly below me
Definition at line 84 of file UPstream.H.
Referenced by UPstream::commsStruct::below(), and Foam::operator<<().
|
private |
procIDs of all processors below (so not just directly below)
Definition at line 87 of file UPstream.H.
Referenced by UPstream::commsStruct::allBelow(), and Foam::operator<<().
|
private |
procIDs of all processors not below. (inverse set of
allBelow_ and minus myProcNo)
Definition at line 91 of file UPstream.H.
Referenced by UPstream::commsStruct::allNotBelow(), and Foam::operator<<().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.