Go to the documentation of this file.
49 Foam::manualDecomp::manualDecomp
58 findCoeffsDict(typeName +
"Coeffs").get<fileName>(
"dataFile")
86 if (finalDecomp.size() !=
points.size())
89 <<
"Size of decomposition list does not correspond "
90 <<
"to the number of points. Size: "
91 << finalDecomp.size() <<
" Number of points: "
93 <<
".\n" <<
"Manual decomposition data read from file "
94 << dataFile_ <<
"." <<
endl
98 const label minVal =
min(finalDecomp);
99 const label maxVal =
max(finalDecomp);
101 if (minVal < 0 || maxVal >= nDomains_)
104 <<
"According to the decomposition, cells assigned to "
105 <<
"impossible processor numbers. Min processor = "
106 << minVal <<
" Max processor = " << maxVal
107 <<
".\n" <<
"Manual decomposition data read from file "
108 << dataFile_ <<
"." <<
endl
112 return std::move(finalDecomp);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Mesh consisting of general polyhedral cells.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
virtual labelList decompose(const polyMesh &mesh, const pointField &cc, const scalarField &cWeights) const
Return for every coordinate the wanted processor number.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Abstract base class for domain decomposition.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(combustionModel, 0)