35 namespace decompositionMethods
65 seed_(methodDict.lookupOrDefault<
label>(
"seed",
clock::getTime()))
78 checkWeights(
points, pointWeights);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Read access to the system clock with formatting.
Abstract base class for decomposition.
Random decomposition. Good for testing. Very bad for anything else.
virtual labelList decompose(const polyMesh &mesh, const pointField &cellCentres, const scalarField &cellWeights)
Return for every coordinate the wanted processor number. Use the.
random(const dictionary &decompositionDict, const dictionary &methodDict)
Construct given the decomposition dictionary.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh consisting of general polyhedral cells.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(metis, 0)
addToRunTimeSelectionTable(decompositionMethod, metis, decomposer)
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
int order(const scalar s)
void sortedOrder(const UList< T > &, labelList &order)
Generate the (stable) sort order for the list.
randomGenerator rndGen(653213)