59 for (label& val : finalDecomp)
73 for (label& val : finalDecomp)
85 Foam::randomDecomp::randomDecomp
141 return randomMap(globalCellCells.
size());
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...
label nDomains_
Number of domains for the decomposition.
List< bool > select(const label n, const labelUList &locations)
Construct a selection list of bools (all false) with the given pre-size, subsequently add specified l...
virtual labelList decompose(const pointField &points, const scalarField &pointWeights) const
Return for every coordinate the wanted processor number.
Macros for easy insertion into run-time selection tables.
defineTypeName(manifoldCellsMeshObject)
Foam::word regionName(Foam::polyMesh::defaultRegion)
A class for handling words, derived from Foam::string.
Abstract base class for domain decomposition.
static const dictionary & findCoeffsDict(const dictionary &dict, const word &coeffsName, int select=selectionType::DEFAULT)
Locate coeffsName dictionary or the fallback "coeffs" dictionary within an enclosing dictionary...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
label nCells() const noexcept
Number of mesh cells.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.