34 const label nOldPoints,
35 const label nOldFaces,
36 const label nOldCells,
64 nOldPoints_(nOldPoints),
65 nOldFaces_(nOldFaces),
66 nOldCells_(nOldCells),
68 pointsFromPointsMap_(pointsFromPoints),
70 facesFromPointsMap_(facesFromPoints),
71 facesFromEdgesMap_(facesFromEdges),
72 facesFromFacesMap_(facesFromFaces),
74 cellsFromPointsMap_(cellsFromPoints),
75 cellsFromEdgesMap_(cellsFromEdges),
76 cellsFromFacesMap_(cellsFromFaces),
77 cellsFromCellsMap_(cellsFromCells),
78 reversePointMap_(reversePointMap),
79 reverseFaceMap_(reverseFaceMap),
80 reverseCellMap_(reverseCellMap),
81 flipFaceFlux_(flipFaceFlux),
82 patchPointMap_(patchPointMap),
83 pointZoneMap_(pointZoneMap),
84 faceZonePointMap_(faceZonePointMap),
85 faceZoneFaceMap_(faceZoneFaceMap),
86 cellZoneMap_(cellZoneMap),
87 preMotionPoints_(preMotionPoints),
88 oldPatchSizes_(oldPatchStarts.
size()),
89 oldPatchStarts_(oldPatchStarts),
90 oldPatchNMeshPoints_(oldPatchNMeshPoints),
91 oldCellVolumesPtr_(oldCellVolumesPtr)
93 if (oldPatchStarts_.size())
103 const label lastPatchID = oldPatchStarts_.size() - 1;
105 oldPatchSizes_[lastPatchID] = nOldFaces_ - oldPatchStarts_[lastPatchID];
109 if (
min(oldPatchSizes_) < 0)
122 const label nOldPoints,
123 const label nOldFaces,
124 const label nOldCells,
153 nOldPoints_(nOldPoints),
154 nOldFaces_(nOldFaces),
155 nOldCells_(nOldCells),
156 pointMap_(pointMap, reuse),
157 pointsFromPointsMap_(pointsFromPoints, reuse),
158 faceMap_(faceMap, reuse),
159 facesFromPointsMap_(facesFromPoints, reuse),
160 facesFromEdgesMap_(facesFromEdges, reuse),
161 facesFromFacesMap_(facesFromFaces, reuse),
162 cellMap_(cellMap, reuse),
163 cellsFromPointsMap_(cellsFromPoints, reuse),
164 cellsFromEdgesMap_(cellsFromEdges, reuse),
165 cellsFromFacesMap_(cellsFromFaces, reuse),
166 cellsFromCellsMap_(cellsFromCells, reuse),
167 reversePointMap_(reversePointMap, reuse),
168 reverseFaceMap_(reverseFaceMap, reuse),
169 reverseCellMap_(reverseCellMap, reuse),
170 flipFaceFlux_(flipFaceFlux),
171 patchPointMap_(patchPointMap, reuse),
172 pointZoneMap_(pointZoneMap, reuse),
173 faceZonePointMap_(faceZonePointMap, reuse),
174 faceZoneFaceMap_(faceZoneFaceMap, reuse),
175 cellZoneMap_(cellZoneMap, reuse),
176 preMotionPoints_(preMotionPoints, reuse),
177 oldPatchSizes_(oldPatchStarts.
size()),
178 oldPatchStarts_(oldPatchStarts, reuse),
179 oldPatchNMeshPoints_(oldPatchNMeshPoints, reuse),
180 oldCellVolumesPtr_(oldCellVolumesPtr, reuse)
182 if (oldPatchStarts_.size() > 0)
192 const label lastPatchID = oldPatchStarts_.size() - 1;
194 oldPatchSizes_[lastPatchID] = nOldFaces_ - oldPatchStarts_[lastPatchID];
198 if (
min(oldPatchSizes_) < 0)
201 <<
"Calculated negative old patch size." 202 <<
" Error in mapping data"
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
mapPolyMesh(const polyMesh &mesh, const label nOldPoints, const label nOldFaces, const label nOldCells, const labelList &pointMap, const List< objectMap > &pointsFromPoints, const labelList &faceMap, const List< objectMap > &facesFromPoints, const List< objectMap > &facesFromEdges, const List< objectMap > &facesFromFaces, const labelList &cellMap, const List< objectMap > &cellsFromPoints, const List< objectMap > &cellsFromEdges, const List< objectMap > &cellsFromFaces, const List< objectMap > &cellsFromCells, const labelList &reversePointMap, const labelList &reverseFaceMap, const labelList &reverseCellMap, const labelHashSet &flipFaceFlux, const labelListList &patchPointMap, const labelListList &pointZoneMap, const labelListList &faceZonePointMap, const labelListList &faceZoneFaceMap, const labelListList &cellZoneMap, const pointField &preMotionPoints, const labelList &oldPatchStarts, const labelList &oldPatchNMeshPoints, const autoPtr< scalarField > &oldCellVolumesPtr)
Construct from components. Copy (except for oldCellVolumes).
void size(const label)
Override size to be inconsistent with allocated storage.
errorManip< error > abort(error &err)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.