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.
A class for handling file names.
const fileName & facesInstance() const
Ostream & endl(Ostream &os)
label min(const labelHashSet &set, label minValue=labelMax)
Mesh consisting of general polyhedral cells.
Generic templated field type.
label max(const labelHashSet &set, label maxValue=labelMin)
virtual labelList decompose(const polyMesh &mesh, const pointField &cc, const scalarField &cWeights) const
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
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
defineTypeNameAndDebug(combustionModel, 0)