43 if (procNeighbours_.
empty() && !procPatchMap_.
empty())
46 procNeighbours_ = procPatchMap_.
sortedToc();
49 return procNeighbours_;
109 = procPatchMap_.sortedToc();
115 return procAdjacencyTable_;
Foam::List< Key > sortedToc(const Compare &comp) const
bool empty() const noexcept
True if the hash table is empty.
static void allGatherList(UList< T > &values, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Gather data, but keep individual values separate. Uses MPI_Allgather or manual communication.
bool empty() const noexcept
True if List is empty (ie, size() is zero).
Inter-processor communications stream.
static int myProcNo(const label communicator=worldComm)
Rank of this process in the communicator (starting from masterNo()). Negative if the process is not a...
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
static int & msgType() noexcept
Message tag of standard messages.
static label nProcs(const label communicator=worldComm)
Number of ranks in parallel run (for given communicator). It is 1 for serial run.
const labelListList & procAdjacency() const
The complete processor to processor connection adjacency table. Globally synchronized information.
const labelList & procNeighbours() const
The neighbour processor connections (ascending order) associated with the local rank.
processorTopology() noexcept
Default construct (empty).
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.