Structure for communicating between processors. More...
Public Member Functions | |
| commsStruct () noexcept | |
| Default construct with above == -1. More... | |
| commsStruct (const int above, List< int > &&below, List< int > &&allBelow, List< int > &&allNotBelow) | |
| Move construct from components. More... | |
| commsStruct (const int numProcs, const int myProcID, const int above, const UList< int > &below, const UList< int > &allBelow) | |
| Copy construct from below, allBelow components. More... | |
| int | above () const noexcept |
| The procID of the processor directly above. More... | |
| const List< int > & | below () const noexcept |
| The procIDs of the processors directly below. More... | |
| const List< int > & | allBelow () const noexcept |
| The procIDs of all processors below (so not just directly below) More... | |
| const List< int > & | allNotBelow () const noexcept |
| The procIDs of all processors not below myProcNo. The inverse set of allBelow without myProcNo. More... | |
| int | nProcs () const noexcept |
| The number of processors addressed by the structure. More... | |
| void | reset () |
| Reset to default constructed state. More... | |
| void | reset_linear (const int myProci, const int numProcs) |
| Reset to linear (flat) communication. More... | |
| void | reset (const int myProci, const int numProcs, const int communicator) |
| Reset to tree selection (linear when very small), possibly with communicator-specific adjustments. More... | |
| bool | operator== (const commsStruct &) const |
| bool | operator!= (const commsStruct &) const |
Friends | |
| Ostream & | operator<< (Ostream &, const commsStruct &) |
Structure for communicating between processors.
Definition at line 220 of file UPstream.H.
|
inlinenoexcept |
Default construct with above == -1.
Definition at line 254 of file UPstream.H.
| commsStruct | ( | const int | above, |
| List< int > && | below, | ||
| List< int > && | allBelow, | ||
| List< int > && | allNotBelow | ||
| ) |
Move construct from components.
Definition at line 240 of file UPstreamCommsStruct.C.
| commsStruct | ( | const int | numProcs, |
| const int | myProcID, | ||
| const int | above, | ||
| const UList< int > & | below, | ||
| const UList< int > & | allBelow | ||
| ) |
Copy construct from below, allBelow components.
Definition at line 255 of file UPstreamCommsStruct.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.

|
inlinenoexcept |
The procID of the processor directly above.
Definition at line 287 of file UPstream.H.
Referenced by Foam::operator<<(), and UPstream::commsStruct::operator==().

|
inlinenoexcept |
The procIDs of the processors directly below.
Definition at line 292 of file UPstream.H.
Referenced by Foam::operator<<(), and UPstream::commsStruct::operator==().

|
inlinenoexcept |
The procIDs of all processors below (so not just directly below)
Definition at line 298 of file UPstream.H.
Referenced by Foam::operator<<().

|
inlinenoexcept |
The procIDs of all processors not below myProcNo. The inverse set of allBelow without myProcNo.
Definition at line 304 of file UPstream.H.
Referenced by Foam::operator<<().

|
noexcept |
The number of processors addressed by the structure.
Definition at line 319 of file UPstreamCommsStruct.C.
References UList< T >::size().
Referenced by UPstream::allProcs(), UPstream::is_parallel(), UPstream::subProcs(), and UPstream::whichCommunication().


| void reset | ( | ) |
Reset to default constructed state.
Definition at line 325 of file UPstreamCommsStruct.C.
| void reset_linear | ( | const int | myProci, |
| const int | numProcs | ||
| ) |
Reset to linear (flat) communication.
Definition at line 335 of file UPstreamCommsStruct.C.
References UList< T >::begin(), UList< T >::end(), reset(), and List< T >::resize().

| void reset | ( | const int | myProci, |
| const int | numProcs, | ||
| const int | communicator | ||
| ) |
Reset to tree selection (linear when very small), possibly with communicator-specific adjustments.
Definition at line 361 of file UPstreamCommsStruct.C.
References reset(), Foam::simpleTree(), and UPstream::usingNodeComms().

| bool operator== | ( | const commsStruct & | comm | ) | const |
Definition at line 503 of file UPstreamCommsStruct.C.
References UPstream::commsStruct::above(), and UPstream::commsStruct::below().

| bool operator!= | ( | const commsStruct & | comm | ) | const |
Definition at line 513 of file UPstreamCommsStruct.C.
References Foam::operator==().

|
friend |