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 labelList & | oldPatchSizes () const |
List of the old patch sizes. More... | |
const labelList & | oldPatchStarts () const |
List of the old patch start labels. More... | |
const labelList & | oldPatchNMeshPoints () const |
List of numbers of mesh points per old patch. More... | |
const distributionMap & | pointMap () const |
Point distribute map. More... | |
const distributionMap & | faceMap () const |
Face distribute map. More... | |
const distributionMap & | cellMap () const |
Cell distribute map. More... | |
const distributionMap & | patchMap () 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 | |
Istream & | operator>> (Istream &, polyDistributionMap &) |
Read dictionary from Istream. More... | |
Ostream & | operator<< (Ostream &, const polyDistributionMap &) |
Write dictionary to Ostream. More... | |
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).
Definition at line 64 of file polyDistributionMap.H.
Construct null.
Definition at line 62 of file polyDistributionMap.C.
Referenced by polyDistributionMap::polyDistributionMap().
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().
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().
polyDistributionMap | ( | polyDistributionMap && | map | ) |
Move constructor.
Definition at line 163 of file polyDistributionMap.C.
polyDistributionMap | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 180 of file polyDistributionMap.C.
|
delete |
Disallow default bitwise copy construction.
|
inline |
Number of points in mesh before distribution.
Definition at line 174 of file polyDistributionMap.H.
Referenced by polyDistributionMap::distributePointIndices().
|
inline |
Number of faces in mesh before distribution.
Definition at line 180 of file polyDistributionMap.H.
Referenced by polyDistributionMap::distributeFaceIndices().
|
inline |
Number of cells in mesh before distribution.
Definition at line 186 of file polyDistributionMap.H.
Referenced by polyDistributionMap::distributeCellIndices().
|
inline |
List of the old patch sizes.
Definition at line 192 of file polyDistributionMap.H.
|
inline |
List of the old patch start labels.
Definition at line 198 of file polyDistributionMap.H.
Referenced by polyDistributionMap::distributePatchIndices().
|
inline |
List of numbers of mesh points per old patch.
Definition at line 204 of file polyDistributionMap.H.
|
inline |
Point distribute map.
Definition at line 210 of file polyDistributionMap.H.
Referenced by hexRef8Data::distribute().
|
inline |
Face distribute map.
Definition at line 216 of file polyDistributionMap.H.
|
inline |
Cell distribute map.
Definition at line 222 of file polyDistributionMap.H.
Referenced by hexRef8Data::distribute(), and refinementHistory::distribute().
|
inline |
Patch distribute map.
Definition at line 228 of file polyDistributionMap.H.
References polyDistributionMap::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().
Distribute list of point data.
Definition at line 241 of file polyDistributionMap.H.
References distributionMap::distribute().
Referenced by hexRef8::distribute(), and polyDistributionMap::distributePointIndices().
Distribute list of face data.
Definition at line 248 of file polyDistributionMap.H.
References distributionMap::distribute().
Referenced by meshRefinement::distribute(), and polyDistributionMap::distributeFaceIndices().
Distribute list of cell data.
Definition at line 255 of file polyDistributionMap.H.
References distributionMap::distribute().
Referenced by hexRef8::distribute(), and polyDistributionMap::distributeCellIndices().
Distribute list of patch data.
Definition at line 262 of file polyDistributionMap.H.
References distributionMap::distribute(), polyDistributionMap::distributeCellIndices(), polyDistributionMap::distributeFaceIndices(), polyDistributionMap::distributePatchIndices(), polyDistributionMap::distributePointIndices(), polyDistributionMap::operator<<, polyDistributionMap::operator=(), and polyDistributionMap::operator>>.
Referenced by polyDistributionMap::distributePatchIndices().
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().
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().
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().
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().
void operator= | ( | const polyDistributionMap & | rhs | ) |
Definition at line 294 of file polyDistributionMap.C.
Referenced by polyDistributionMap::distributePatchData().
void operator= | ( | polyDistributionMap && | rhs | ) |
Definition at line 311 of file polyDistributionMap.C.
|
friend |
Read dictionary from Istream.
Referenced by polyDistributionMap::distributePatchData().
|
friend |
Write dictionary to Ostream.
Referenced by polyDistributionMap::distributePatchData().