49#ifndef Foam_processorTopology_H
50#define Foam_processorTopology_H
92 label procToLocalPatch(
const label proci)
const
96 proci >= 0 && proci < procPatchMap_.
size()
97 ? procPatchMap_[proci]
98 :
static_cast<label
>(-1)
128 template<
class ProcPatch,
class PatchListType>
141 return procNeighbours_.
size();
148 return procNeighbours_;
155 return patchSchedule_;
163 return procToLocalPatch(proci);
void size(const label n)
Older name for setAddressableSize.
Determines/represents processor-processor connection. After instantiation contains the processor-proc...
static processorTopology New(const PatchListType &patches, const label comm)
Factory method to create topology, schedule and proc/patch maps.
label procPatchLookup(const label proci) const
Which local boundary is attached to specified processor.
processorTopology(const processorTopology &)=default
Copy construct.
processorTopology(processorTopology &&)=default
Move construct.
const labelListList & procNeighbours() const noexcept
const lduSchedule & patchSchedule() const noexcept
label nProcs() const noexcept
The number of processors used by the topology.
processorTopology & operator=(const processorTopology &)=default
Copy assignment.
processorTopology()=default
Default construct (empty)
processorTopology & operator=(processorTopology &&)=default
Move assignment.
const polyBoundaryMesh & patches