37static constexpr Foam::label
BLOCKED = -2;
42Foam::regionSplit2D::regionSplit2D
54 label regioni = globalFaces.
toGlobal(0);
55 List<patchEdgeFaceRegion> allEdgeInfo(patch.nEdges());
56 List<patchEdgeFaceRegion>
allFaceInfo(patch.size());
59 label nBlockedFaces = 0;
60 forAll(blockedFaces, facei)
62 if (blockedFaces.
test(facei))
64 for (
const label edgei : patch.faceEdges()[facei])
66 changedEdges.
append(edgei);
69 changedRegions.
append(regioni);
106 label compactRegioni = 0;
113 && regionToCompactAddr.insert(regioni, compactRegioni)
125 iter.val() += myProcOffset;
135 nRegions_ = regionToCompactAddr.size();
143 this->
operator[](facei) = regionToCompactAddr[regioni] + offset;
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
A HashTable to objects of type <T> with a label key.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
static void mapCombineReduce(Container &values, CombineOp cop, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Forwards to Pstream::mapReduce with an in-place cop.
bool test(const label i) const
Test bool value at specified position, always false for out-of-range access.
label & operator[](const label i)
Calculates a non-overlapping list of offsets based on an input size (eg, number of cells) from differ...
static IntType calcOffset(IntType localSize, const label comm=UPstream::worldComm)
Based on the local input size(s), calculate a globally-consistent local start offset.
bool isLocal(const label proci, const label i) const
Is on processor proci.
label toGlobal(const label proci, const label i) const
From local to global on proci.
Transport of region for use in PatchEdgeFaceWave.
Mesh consisting of general polyhedral cells.
List< wallPoints > allFaceInfo(mesh_.nFaces())
bool returnReduceOr(const bool value, const int communicator=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
List< label > labelList
A List of labels.
T returnReduce(const T &value, BinaryOp bop, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
PrimitivePatch< IndirectList< face >, const pointField & > indirectPrimitivePatch
A PrimitivePatch with an IndirectList for the faces, const reference for the point field.
List< bool > boolList
A List of bools.
static constexpr Foam::label UNASSIGNED
static constexpr Foam::label BLOCKED
#define forAll(list, i)
Loop across all elements in list.
#define forAllIters(container, iter)
Iterate across all elements in the container object.