61 for (label i = nCells - 1; i > 0; --i)
63 label j =
rndGen.position<label>(0, i);
64 std::swap(newToOld[i], newToOld[j]);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A packed storage of objects of type <T> using an offset table for access.
label size() const noexcept
The primary size (the number of rows/sublists).
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh consisting of general polyhedral cells.
Random renumber. Just to see effect of renumbering.
virtual labelList renumber(const label nCells) const
Return the cell visit order (from ordered back to original cell id) based solely on the number of cel...
randomRenumber()
Default construct.
Abstract base class for renumbering.
renumberMethod()
Default construct.
#define defineTypeName(Type)
Define the typeName.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
labelList randomMap(const label nCells)
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
vectorField pointField
pointField is a vectorField.