58 findCoeffsDict(typeName +
"Coeffs").get<
fileName>(
"dataFile")
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);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void size(const label n)
Older name for setAddressableSize.
Abstract base class for domain decomposition.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Decompose based on cell-to-processor association in a file.
Mesh consisting of general polyhedral cells.
const fileName & facesInstance() const
Return the current instance directory for faces.
bool decompose() const noexcept
Query the decompose flag (normally off)
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Foam::word regionName(Foam::polyMesh::defaultRegion)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)