49 Foam::manualDecomp::manualDecomp
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);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void size(const label n)
Older name for setAddressableSize.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fileName & facesInstance() const
Return the current instance directory for faces.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#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.
Macros for easy insertion into run-time selection tables.
Foam::word regionName(Foam::polyMesh::defaultRegion)
A class for handling words, derived from Foam::string.
Abstract base class for domain decomposition.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
defineTypeNameAndDebug(combustionModel, 0)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Automatically write from objectRegistry::writeObject()
Mesh consisting of general polyhedral cells.
virtual labelList decompose(const polyMesh &mesh, const pointField &cc, const scalarField &cWeights) const
Return for every coordinate the wanted processor number.
Defines the attributes of an object for which implicit objectRegistry management is supported...