35 #ifndef mapPatchChange_H 36 #define mapPatchChange_H 54 const label nOldPatches_;
66 nOldPatches_(nOldPatches),
102 if (patchMap_[
patchi] == -1)
107 added.setSize(addedI);
119 if (patchMap_[
patchi] != -1)
129 forAll(oldToNew, oldPatchi)
131 if (oldToNew[oldPatchi] == -1)
133 oldToNew[deletedI++] = oldPatchi;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
Class containing mesh-to-mesh mapping information after a patch change operation. ...
labelList addedPatches() const
Labels of added patches.
label nOldPatches() const
Number of old patches.
const labelList & patchMap() const
Patch map. Size of current patches.
void setSize(const label)
Reset size of List.
labelList deletedPatches() const
Labels (on old mesh) of deleted patches.
mapPatchChange(const label nOldPatches, const labelList &patchMap)
Construct from components.