31 Foam::mapPolyMesh::mapPolyMesh
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)
101 const label lastPatchID = oldPatchStarts_.size() - 1;
103 oldPatchSizes_[lastPatchID] = nOldFaces_ - oldPatchStarts_[lastPatchID];
107 if (
min(oldPatchSizes_) < 0)
116 Foam::mapPolyMesh::mapPolyMesh
119 const label nOldPoints,
120 const label nOldFaces,
121 const label nOldCells,
150 nOldPoints_(nOldPoints),
151 nOldFaces_(nOldFaces),
152 nOldCells_(nOldCells),
153 pointMap_(pointMap, reuse),
154 pointsFromPointsMap_(pointsFromPoints, reuse),
155 faceMap_(faceMap, reuse),
156 facesFromPointsMap_(facesFromPoints, reuse),
157 facesFromEdgesMap_(facesFromEdges, reuse),
158 facesFromFacesMap_(facesFromFaces, reuse),
159 cellMap_(cellMap, reuse),
160 cellsFromPointsMap_(cellsFromPoints, reuse),
161 cellsFromEdgesMap_(cellsFromEdges, reuse),
162 cellsFromFacesMap_(cellsFromFaces, reuse),
163 cellsFromCellsMap_(cellsFromCells, reuse),
164 reversePointMap_(reversePointMap, reuse),
165 reverseFaceMap_(reverseFaceMap, reuse),
166 reverseCellMap_(reverseCellMap, reuse),
167 flipFaceFlux_(flipFaceFlux),
168 patchPointMap_(patchPointMap, reuse),
169 pointZoneMap_(pointZoneMap, reuse),
170 faceZonePointMap_(faceZonePointMap, reuse),
171 faceZoneFaceMap_(faceZoneFaceMap, reuse),
172 cellZoneMap_(cellZoneMap, reuse),
173 preMotionPoints_(preMotionPoints, reuse),
174 oldPatchSizes_(oldPatchStarts.
size()),
175 oldPatchStarts_(oldPatchStarts, reuse),
176 oldPatchNMeshPoints_(oldPatchNMeshPoints, reuse),
177 oldCellVolumesPtr_(oldCellVolumesPtr, reuse)
179 if (oldPatchStarts_.size() > 0)
189 const label lastPatchID = oldPatchStarts_.size() - 1;
191 oldPatchSizes_[lastPatchID] = nOldFaces_ - oldPatchStarts_[lastPatchID];
195 if (
min(oldPatchSizes_) < 0)
198 <<
"Calculated negative old patch size." 199 <<
" 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.
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.