Go to the documentation of this file.
57 Foam::manualDecomp::manualDecomp(
const dictionary& decompDict)
62 findCoeffsDict(typeName +
"Coeffs").get<
fileName>(
"dataFile")
67 Foam::manualDecomp::manualDecomp
76 findCoeffsDict(typeName +
"Coeffs").get<fileName>(
"dataFile")
104 if (finalDecomp.size() !=
points.size())
107 <<
"Size of decomposition list does not correspond "
108 <<
"to the number of points. Size: "
109 << finalDecomp.size() <<
" Number of points: "
111 <<
".\n" <<
"Manual decomposition data read from file "
112 << dataFile_ <<
"." <<
endl
116 const label minVal =
min(finalDecomp);
117 const label maxVal =
max(finalDecomp);
119 if (minVal < 0 || maxVal >= nDomains_)
122 <<
"According to the decomposition, cells assigned to "
123 <<
"impossible processor numbers. Min processor = "
124 << minVal <<
" Max processor = " << maxVal
125 <<
".\n" <<
"Manual decomposition data read from file "
126 << dataFile_ <<
"." <<
endl
130 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.
A class for handling file names.
const fileName & facesInstance() const
Return the current instance directory for faces.
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)