54 label regionI = globalFaces.
toGlobal(0);
60 label nBlockedFaces = 0;
61 forAll(blockedFaces, facei)
63 if (blockedFaces.
test(facei))
65 for (
const label edgei : patch.faceEdges()[facei])
67 changedEdges.
append(edgei);
118 label compactRegionI = 0;
119 forAll(allFaceInfo, faceI)
121 label regionI = allFaceInfo[faceI].
data();
125 && regionToCompactAddr.insert(regionI, compactRegionI)
144 nRegions_ = regionToCompactAddr.size();
147 forAll(allFaceInfo, faceI)
149 label regionI = allFaceInfo[faceI].
data();
152 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...
A list of faces which address into the list of points.
static void mapCombineAllGather(const List< commsStruct > &comms, Container &values, const CombineOp &cop, const int tag, const label comm)
After completion all processors have the same data.
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type test(const label i) const
T * data() noexcept
Return pointer to the underlying array serving as data storage.
void size(const label n)
Older name for setAddressableSize.
T & operator[](const label i)
Return element of UList.
For use with PatchEdgeFaceWave. Determines topological distance to starting edges....
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
label toGlobal(const label i) const
From local to global index.
bool isLocal(const label i) const
Is on local processor.
Mesh consisting of general polyhedral cells.
Splits a patch into regions based on a mask field. Result is a globally consistent label list of regi...
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
PrimitivePatch< IndirectList< face >, const pointField & > indirectPrimitivePatch
A PrimitivePatch with an IndirectList for the faces, const reference for the point field.
static constexpr Foam::label UNASSIGNED
static constexpr Foam::label BLOCKED
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.