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 ()
 Construct null. More...
 
 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 label nOldPoints, const label nOldFaces, const label nOldCells, labelList &&oldPatchStarts, labelList &&oldPatchNMeshPoints, distributionMap &&pointMap, distributionMap &&faceMap, distributionMap &&cellMap, distributionMap &&patchMap)
 Move constructor from components. More...
 
 polyDistributionMap (polyDistributionMap &&)
 Move constructor. More...
 
 polyDistributionMap (Istream &)
 Construct from Istream. More...
 
 polyDistributionMap (const polyDistributionMap &)=delete
 Disallow default bitwise copy construction. 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...
 
void transfer (polyDistributionMap &)
 Transfer the contents of the argument and annul the argument. 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/face/cell/patch indices. More...
 
void distributeFaceIndices (labelList &faceIDs) const
 
void distributeCellIndices (labelList &cellIDs) const
 
void distributePatchIndices (labelList &patchIDs) const
 
void operator= (const polyDistributionMap &)
 
void operator= (polyDistributionMap &&)
 

Friends

Istreamoperator>> (Istream &, polyDistributionMap &)
 Read dictionary from Istream. More...
 
Ostreamoperator<< (Ostream &, const polyDistributionMap &)
 Write dictionary to Ostream. 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/6]

Construct null.

Definition at line 62 of file polyDistributionMap.C.

Referenced by polyDistributionMap::polyDistributionMap().

Here is the caller graph for this function:

◆ polyDistributionMap() [2/6]

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 78 of file polyDistributionMap.C.

References polyDistributionMap::polyDistributionMap().

Here is the call graph for this function:

◆ polyDistributionMap() [3/6]

polyDistributionMap ( const label  nOldPoints,
const label  nOldFaces,
const label  nOldCells,
labelList &&  oldPatchStarts,
labelList &&  oldPatchNMeshPoints,
distributionMap &&  pointMap,
distributionMap &&  faceMap,
distributionMap &&  cellMap,
distributionMap &&  patchMap 
)

Move constructor from components.

Definition at line 132 of file polyDistributionMap.C.

References polyDistributionMap::polyDistributionMap().

Here is the call graph for this function:

◆ polyDistributionMap() [4/6]

Move constructor.

Definition at line 163 of file polyDistributionMap.C.

◆ polyDistributionMap() [5/6]

Construct from Istream.

Definition at line 180 of file polyDistributionMap.C.

◆ polyDistributionMap() [6/6]

Disallow default bitwise copy construction.

Member Function Documentation

◆ nOldPoints()

label nOldPoints ( ) const
inline

Number of points in mesh before distribution.

Definition at line 174 of file polyDistributionMap.H.

Referenced by polyDistributionMap::distributePointIndices().

Here is the caller graph for this function:

◆ nOldFaces()

label nOldFaces ( ) const
inline

Number of faces in mesh before distribution.

Definition at line 180 of file polyDistributionMap.H.

Referenced by polyDistributionMap::distributeFaceIndices().

Here is the caller graph for this function:

◆ nOldCells()

label nOldCells ( ) const
inline

Number of cells in mesh before distribution.

Definition at line 186 of file polyDistributionMap.H.

Referenced by polyDistributionMap::distributeCellIndices().

Here is the caller graph for this function:

◆ oldPatchSizes()

const labelList& oldPatchSizes ( ) const
inline

List of the old patch sizes.

Definition at line 192 of file polyDistributionMap.H.

◆ oldPatchStarts()

const labelList& oldPatchStarts ( ) const
inline

List of the old patch start labels.

Definition at line 198 of file polyDistributionMap.H.

Referenced by polyDistributionMap::distributePatchIndices().

Here is the caller graph for this function:

◆ oldPatchNMeshPoints()

const labelList& oldPatchNMeshPoints ( ) const
inline

List of numbers of mesh points per old patch.

Definition at line 204 of file polyDistributionMap.H.

◆ pointMap()

const distributionMap& pointMap ( ) const
inline

Point distribute map.

Definition at line 210 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 216 of file polyDistributionMap.H.

◆ cellMap()

const distributionMap& cellMap ( ) const
inline

Cell distribute map.

Definition at line 222 of file polyDistributionMap.H.

Referenced by 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 228 of file polyDistributionMap.H.

References polyDistributionMap::transfer().

Here is the call graph for this function:

◆ transfer()

void transfer ( polyDistributionMap rhs)

Transfer the contents of the argument and annul the argument.

Definition at line 188 of file polyDistributionMap.C.

References List< T >::transfer(), and distributionMap::transfer().

Referenced by polyDistributionMap::patchMap().

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

◆ distributePointData()

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

Distribute list of point data.

Definition at line 241 of file polyDistributionMap.H.

References distributionMap::distribute().

Referenced by hexRef8::distribute(), and polyDistributionMap::distributePointIndices().

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 248 of file polyDistributionMap.H.

References distributionMap::distribute().

Referenced by meshRefinement::distribute(), and polyDistributionMap::distributeFaceIndices().

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 255 of file polyDistributionMap.H.

References distributionMap::distribute().

Referenced by hexRef8::distribute(), and polyDistributionMap::distributeCellIndices().

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

◆ distributePatchData()

◆ distributePointIndices()

void distributePointIndices ( labelList pointIDs) const

Distribute list of point/face/cell/patch indices.

(Converts to boolList, distributes boolList and reconstructs)

Definition at line 203 of file polyDistributionMap.C.

References polyDistributionMap::distributePointData(), Foam::findIndices(), and polyDistributionMap::nOldPoints().

Referenced by polyDistributionMap::distributePatchData().

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

◆ distributeFaceIndices()

void distributeFaceIndices ( labelList faceIDs) const

Definition at line 225 of file polyDistributionMap.C.

References polyDistributionMap::distributeFaceData(), Foam::findIndices(), and polyDistributionMap::nOldFaces().

Referenced by polyDistributionMap::distributePatchData().

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

◆ distributeCellIndices()

void distributeCellIndices ( labelList cellIDs) const

Definition at line 247 of file polyDistributionMap.C.

References polyDistributionMap::distributeCellData(), Foam::findIndices(), and polyDistributionMap::nOldCells().

Referenced by polyDistributionMap::distributePatchData().

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

◆ distributePatchIndices()

void distributePatchIndices ( labelList patchIDs) const

Definition at line 269 of file polyDistributionMap.C.

References polyDistributionMap::distributePatchData(), Foam::findIndices(), and polyDistributionMap::oldPatchStarts().

Referenced by polyDistributionMap::distributePatchData().

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

◆ operator=() [1/2]

void operator= ( const polyDistributionMap rhs)

Definition at line 294 of file polyDistributionMap.C.

Referenced by polyDistributionMap::distributePatchData().

Here is the caller graph for this function:

◆ operator=() [2/2]

void operator= ( polyDistributionMap &&  rhs)

Definition at line 311 of file polyDistributionMap.C.

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
polyDistributionMap  
)
friend

Read dictionary from Istream.

Referenced by polyDistributionMap::distributePatchData().

◆ operator<<

Ostream& operator<< ( Ostream ,
const polyDistributionMap  
)
friend

Write dictionary to Ostream.

Referenced by polyDistributionMap::distributePatchData().


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