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.
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.