Go to the documentation of this file.
101 #ifndef regionSplit_H
102 #define regionSplit_H
122 public MeshObject<polyMesh, TopologicalMeshObject, regionSplit>,
144 const bool doGlobalRegions,
static bool & parRun()
Is this a parallel run?
label localSize() const
My local size.
Mesh consisting of general polyhedral cells.
autoPtr< globalIndex > calcRegionSplit(const bool doGlobalRegions, const boolList &blockedFace, const List< labelPair > &explicitConnections, labelList &cellRegion) const
Calculate global region split. Return globalIndex.
regionSplit(const polyMesh &, const bool doGlobalRegions=Pstream::parRun())
Construct from mesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const globalIndex & globalNumbering() const
Return global region numbering.
This class separates the mesh into distinct unconnected regions, each of which is then given a label ...
label nRegions() const
Return total number of regions.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void calcNonCompactRegionSplit(const globalIndex &globalFaces, const boolList &blockedFace, const List< labelPair > &explicitConnections, labelList &cellRegion) const
Calculate region split in non-compact (global) numbering.
label size() const
Global sum of localSizes.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
autoPtr< globalIndex > globalNumberingPtr_
ClassName("regionSplit")
Runtime type information.
label nLocalRegions() const
Return local number of regions.