polyDistributionMap Class Reference

Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of meshes (using subsetting) to other processors and receive and reconstruct mesh. More...

Public Member Functions

 polyDistributionMap (const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, labelList &&oldPatchStarts, labelList &&oldPatchNMeshPoints, labelListList &&subPointMap, labelListList &&subFaceMap, labelListList &&subCellMap, labelListList &&subPatchMap, labelListList &&constructPointMap, labelListList &&constructFaceMap, labelListList &&constructCellMap, labelListList &&constructPatchMap, const bool subFaceHasFlip=false, const bool constructFaceHasFlip=false)
 Move constructor from components. More...
 
 polyDistributionMap (const polyDistributionMap &)=delete
 Disallow default bitwise copy construction. More...
 
const polyMeshmesh () const
 Return polyMesh. More...
 
label nOldPoints () const
 Number of points in mesh before distribution. More...
 
label nOldFaces () const
 Number of faces in mesh before distribution. More...
 
label nOldCells () const
 Number of cells in mesh before distribution. More...
 
const labelListoldPatchSizes () const
 List of the old patch sizes. More...
 
const labelListoldPatchStarts () const
 List of the old patch start labels. More...
 
const labelListoldPatchNMeshPoints () const
 List of numbers of mesh points per old patch. More...
 
const distributionMappointMap () const
 Point distribute map. More...
 
const distributionMapfaceMap () const
 Face distribute map. More...
 
const distributionMapcellMap () const
 Cell distribute map. More...
 
const distributionMappatchMap () const
 Patch distribute map. More...
 
template<class T >
void distributePointData (List< T > &lst) const
 Distribute list of point data. More...
 
template<class T >
void distributeFaceData (List< T > &lst) const
 Distribute list of face data. More...
 
template<class T >
void distributeCellData (List< T > &lst) const
 Distribute list of cell data. More...
 
template<class T >
void distributePatchData (List< T > &lst) const
 Distribute list of patch data. More...
 
void distributePointIndices (labelList &pointIDs) const
 Distribute list of point indices. More...
 
void distributeFaceIndices (labelList &faceIDs) const
 Distribute list of face indices. More...
 
void distributeCellIndices (labelList &cellIDs) const
 Distribute list of cell indices. More...
 
void distributePatchIndices (labelList &patchIDs) const
 Distribute list of patch indices. More...
 
void operator= (const polyDistributionMap &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of meshes (using subsetting) to other processors and receive and reconstruct mesh.

We store mapping from the bits-to-send to the complete starting mesh (subXXXMap) and from the received bits to their location in the new mesh (constructXXXMap).

Source files

Definition at line 64 of file polyDistributionMap.H.

Constructor & Destructor Documentation

◆ polyDistributionMap() [1/2]

polyDistributionMap ( const polyMesh mesh,
const label  nOldPoints,
const label  nOldFaces,
const label  nOldCells,
labelList &&  oldPatchStarts,
labelList &&  oldPatchNMeshPoints,
labelListList &&  subPointMap,
labelListList &&  subFaceMap,
labelListList &&  subCellMap,
labelListList &&  subPatchMap,
labelListList &&  constructPointMap,
labelListList &&  constructFaceMap,
labelListList &&  constructCellMap,
labelListList &&  constructPatchMap,
const bool  subFaceHasFlip = false,
const bool  constructFaceHasFlip = false 
)

Move constructor from components.

Note that mesh has to be changed already since uses mesh.nPoints etc as the new size.

Definition at line 62 of file polyDistributionMap.C.

◆ polyDistributionMap() [2/2]

Disallow default bitwise copy construction.

Member Function Documentation

◆ mesh()

◆ nOldPoints()

label nOldPoints ( ) const
inline

Number of points in mesh before distribution.

Definition at line 157 of file polyDistributionMap.H.

◆ nOldFaces()

label nOldFaces ( ) const
inline

Number of faces in mesh before distribution.

Definition at line 163 of file polyDistributionMap.H.

◆ nOldCells()

label nOldCells ( ) const
inline

Number of cells in mesh before distribution.

Definition at line 169 of file polyDistributionMap.H.

Referenced by Cloud< ParticleType >::distribute().

Here is the caller graph for this function:

◆ oldPatchSizes()

const labelList& oldPatchSizes ( ) const
inline

List of the old patch sizes.

Definition at line 175 of file polyDistributionMap.H.

◆ oldPatchStarts()

const labelList& oldPatchStarts ( ) const
inline

List of the old patch start labels.

Definition at line 181 of file polyDistributionMap.H.

◆ oldPatchNMeshPoints()

const labelList& oldPatchNMeshPoints ( ) const
inline

List of numbers of mesh points per old patch.

Definition at line 187 of file polyDistributionMap.H.

◆ pointMap()

const distributionMap& pointMap ( ) const
inline

Point distribute map.

Definition at line 193 of file polyDistributionMap.H.

Referenced by hexRef8Data::distribute().

Here is the caller graph for this function:

◆ faceMap()

const distributionMap& faceMap ( ) const
inline

Face distribute map.

Definition at line 199 of file polyDistributionMap.H.

◆ cellMap()

const distributionMap& cellMap ( ) const
inline

Cell distribute map.

Definition at line 205 of file polyDistributionMap.H.

Referenced by Cloud< ParticleType >::distribute(), hexRef8Data::distribute(), and refinementHistory::distribute().

Here is the caller graph for this function:

◆ patchMap()

const distributionMap& patchMap ( ) const
inline

Patch distribute map.

Definition at line 211 of file polyDistributionMap.H.

◆ distributePointData()

void distributePointData ( List< T > &  lst) const
inline

Distribute list of point data.

Definition at line 221 of file polyDistributionMap.H.

References distributionMap::distribute().

Referenced by points0MotionSolver::distribute(), and hexRef8::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distributeFaceData()

void distributeFaceData ( List< T > &  lst) const
inline

Distribute list of face data.

Definition at line 228 of file polyDistributionMap.H.

References distributionMap::distribute().

Referenced by meshRefinement::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distributeCellData()

void distributeCellData ( List< T > &  lst) const
inline

Distribute list of cell data.

Definition at line 235 of file polyDistributionMap.H.

References distributionMap::distribute().

Referenced by hexRef8::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distributePatchData()

void distributePatchData ( List< T > &  lst) const
inline

Distribute list of patch data.

Definition at line 242 of file polyDistributionMap.H.

References distributionMap::distribute().

Here is the call graph for this function:

◆ distributePointIndices()

void distributePointIndices ( labelList pointIDs) const

Distribute list of point indices.

(Converts to boolList, distributes boolList and reconstructs)

Definition at line 119 of file polyDistributionMap.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributeFaceIndices()

void distributeFaceIndices ( labelList faceIDs) const

Distribute list of face indices.

(Converts to boolList, distributes boolList and reconstructs)

Definition at line 141 of file polyDistributionMap.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributeCellIndices()

void distributeCellIndices ( labelList cellIDs) const

Distribute list of cell indices.

(Converts to boolList, distributes boolList and reconstructs)

Definition at line 163 of file polyDistributionMap.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ distributePatchIndices()

void distributePatchIndices ( labelList patchIDs) const

Distribute list of patch indices.

(Converts to boolList, distributes boolList and reconstructs)

Definition at line 185 of file polyDistributionMap.C.

References Foam::findIndices().

Here is the call graph for this function:

◆ operator=()

void operator= ( const polyDistributionMap )
delete

Disallow default bitwise assignment.


The documentation for this class was generated from the following files: