Go to the documentation of this file.
35 Foam::regionSplit2D::regionSplit2D
47 label regionI = globalFaces.
toGlobal(0);
52 label nBlockedFaces = 0;
53 forAll(blockedFaces, faceI)
55 if (blockedFaces[faceI])
60 changedEdges.
append(fEdges[feI]);
110 Map<label> regionToCompactAddr(changedRegions.size());
111 label compactRegionI = 0;
112 forAll(allFaceInfo, faceI)
114 label regionI = allFaceInfo[faceI].data();
117 globalFaces.isLocal(regionI)
118 && regionToCompactAddr.insert(regionI, compactRegionI)
136 Pstream::mapCombineScatter(regionToCompactAddr);
138 nRegions_ = regionToCompactAddr.size();
141 forAll(allFaceInfo, faceI)
143 label regionI = allFaceInfo[faceI].data();
146 this->operator[](faceI) = regionToCompactAddr[regionI] + offset;
List< label > labelList
A List of labels.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
~regionSplit2D()
Destructor.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
void append(const T &val)
Append an element at the end of the list.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
For use with PatchEdgeFaceWave. Determines topological distance to starting edges....
#define forAllIters(container, iter)
Iterate across all elements in the container object.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
PrimitivePatch< IndirectList< face >, const pointField & > indirectPrimitivePatch
A PrimitivePatch with an IndirectList for the faces, const reference for the point field.
const std::string patch
OpenFOAM patch number as a std::string.
label toGlobal(const label i) const
From local to global index.
A list of faces which address into the list of points.