43 const label nOldPoints,
44 const label nOldFaces,
45 const label nOldCells,
73 nOldPoints_(nOldPoints),
74 nOldFaces_(nOldFaces),
75 nOldCells_(nOldCells),
77 pointsFromPointsMap_(pointsFromPoints),
79 facesFromPointsMap_(facesFromPoints),
80 facesFromEdgesMap_(facesFromEdges),
81 facesFromFacesMap_(facesFromFaces),
83 cellsFromPointsMap_(cellsFromPoints),
84 cellsFromEdgesMap_(cellsFromEdges),
85 cellsFromFacesMap_(cellsFromFaces),
86 cellsFromCellsMap_(cellsFromCells),
87 reversePointMap_(reversePointMap),
88 reverseFaceMap_(reverseFaceMap),
89 reverseCellMap_(reverseCellMap),
90 flipFaceFlux_(flipFaceFlux),
91 patchPointMap_(patchPointMap),
92 pointZoneMap_(pointZoneMap),
93 faceZonePointMap_(faceZonePointMap),
94 faceZoneFaceMap_(faceZoneFaceMap),
95 cellZoneMap_(cellZoneMap),
96 preMotionPoints_(preMotionPoints),
97 oldPatchSizes_(oldPatchStarts.size()),
98 oldPatchStarts_(oldPatchStarts),
99 oldPatchNMeshPoints_(oldPatchNMeshPoints),
100 oldCellVolumesPtr_(oldCellVolumesPtr)
102 if (oldPatchStarts_.
size())
112 const label lastPatchID = oldPatchStarts_.
size() - 1;
114 oldPatchSizes_[lastPatchID] = nOldFaces_ - oldPatchStarts_[lastPatchID];
118 if (
min(oldPatchSizes_) < 0)
131 const label nOldPoints,
132 const label nOldFaces,
133 const label nOldCells,
162 nOldPoints_(nOldPoints),
163 nOldFaces_(nOldFaces),
164 nOldCells_(nOldCells),
165 pointMap_(pointMap, reuse),
166 pointsFromPointsMap_(pointsFromPoints, reuse),
168 facesFromPointsMap_(facesFromPoints, reuse),
169 facesFromEdgesMap_(facesFromEdges, reuse),
170 facesFromFacesMap_(facesFromFaces, reuse),
171 cellMap_(cellMap, reuse),
172 cellsFromPointsMap_(cellsFromPoints, reuse),
173 cellsFromEdgesMap_(cellsFromEdges, reuse),
174 cellsFromFacesMap_(cellsFromFaces, reuse),
175 cellsFromCellsMap_(cellsFromCells, reuse),
176 reversePointMap_(reversePointMap, reuse),
177 reverseFaceMap_(reverseFaceMap, reuse),
178 reverseCellMap_(reverseCellMap, reuse),
179 flipFaceFlux_(flipFaceFlux),
180 patchPointMap_(patchPointMap, reuse),
181 pointZoneMap_(pointZoneMap, reuse),
182 faceZonePointMap_(faceZonePointMap, reuse),
183 faceZoneFaceMap_(faceZoneFaceMap, reuse),
184 cellZoneMap_(cellZoneMap, reuse),
185 preMotionPoints_(preMotionPoints, reuse),
186 oldPatchSizes_(oldPatchStarts.size()),
187 oldPatchStarts_(oldPatchStarts, reuse),
188 oldPatchNMeshPoints_(oldPatchNMeshPoints, reuse),
189 oldCellVolumesPtr_(oldCellVolumesPtr, reuse)
191 if (oldPatchStarts_.
size() > 0)
201 const label lastPatchID = oldPatchStarts_.
size() - 1;
203 oldPatchSizes_[lastPatchID] = nOldFaces_ - oldPatchStarts_[lastPatchID];
207 if (
min(oldPatchSizes_) < 0)
210 <<
"Calculated negative old patch size."
211 <<
" Error in mapping data"
void size(const label)
Override size to be inconsistent with allocated storage.
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.
polyTopoChangeMap(const polyMesh &mesh)
Construct from mesh only, no topology change.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)