67 for (label iter = 0; iter < 10; iter++)
71 label j =
rndGen.position<label>(0, newToOld.size()-1);
72 std::swap(newToOld[i], newToOld[j]);
A list of keyword definitions, which are a keyword followed by a number of values (eg...
IntListType renumber(const labelUList &oldToNew, const IntListType &input)
Renumber the values (not the indices) of a list.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
Abstract base class for renumbering.
vectorField pointField
pointField is a vectorField.
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...
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited (ie. from ordered back to original cell label)...
A packed storage of objects of type <T> using an offset table for access.
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)