31 void Foam::polyTopoChange::reorder
38 DynamicList<T> oldLst(lst);
42 label newElemI = oldToNew[elemI];
46 lst[newElemI] = oldLst[elemI];
53 void Foam::polyTopoChange::reorder
56 List<DynamicList<T>>& lst
60 List<DynamicList<T>> oldLst(lst);
64 label newElemI = oldToNew[elemI];
68 lst[newElemI].transfer(oldLst[elemI]);
75 void Foam::polyTopoChange::renumberKey
81 Map<T> newElems(elems.size());
85 label newElem = oldToNew[iter.key()];
89 newElems.insert(newElem, iter());
93 elems.transfer(newElems);
#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.
List< label > labelList
A List of labels.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)