Go to the documentation of this file.
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;
mapPatchChange(const label nOldPatches, const labelList &patchMap)
Construct from components.
Class containing mesh-to-mesh mapping information after a patch change operation.
label nOldPatches() const
Number of old patches.
#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.
labelList deletedPatches() const
Labels (on old mesh) of deleted patches.
const labelList & patchMap() const
Patch map. Size of current patches.
void setSize(const label newSize)
Alias for resize(const label)
labelList addedPatches() const
Labels of added patches.