33 template<
class CellType>
36 if (!
c->parallelDualVertex())
45 for (Foam::label vI = 0; vI < 4; ++vI)
47 if (
c->vertex(vI)->referred())
49 masterProc =
min(masterProc,
c->vertex(vI)->procIndex());
61 template<
class CellType>
67 if (!
c->parallelDualVertex())
72 for (Foam::label vI = 0; vI < 4; ++vI)
74 if (
c->vertex(vI)->referred())
76 procsAttached[vI] =
c->vertex(vI)->procIndex();
A 1D vector of objects of type <T> with a fixed length <N>.
Foam::label dualVertexMasterProc(const CellType &c)
Does the Dual vertex form part of a processor patch.
static int myProcNo(const label communicator=worldComm)
Rank of this process in the communicator (starting from masterNo()). Can be negative if the process i...
static label nProcs(const label communicator=worldComm)
Number of ranks in parallel run (for given communicator). It is 1 for serial run. ...
Foam::FixedList< Foam::label, 4 > processorsAttached(const CellType &c)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
const dimensionedScalar c
Speed of light in a vacuum.