37 #ifndef mapPatchChange_H 38 #define mapPatchChange_H 56 const label nOldPatches_;
104 if (patchMap_[patchi] == -1)
106 added[addedI++] = patchi;
109 added.setSize(addedI);
121 if (patchMap_[patchi] != -1)
123 oldToNew[patchMap_[patchi]] = patchi;
131 forAll(oldToNew, oldPatchi)
133 if (oldToNew[oldPatchi] == -1)
135 oldToNew[deletedI++] = oldPatchi;
139 oldToNew.setSize(deletedI);
void size(const label n)
Older name for setAddressableSize.
Class containing mesh-to-mesh mapping information after a patch change operation. ...
labelList addedPatches() const
Labels of added patches.
#define forAll(list, i)
Loop across all elements in list.
label nOldPatches() const
Number of old patches.
const labelList & patchMap() const
Patch map. Size of current patches.
labelList deletedPatches() const
Labels (on old mesh) of deleted patches.
List< label > labelList
A List of labels.
mapPatchChange(const label nOldPatches, const labelList &patchMap)
Construct from components.