35 namespace decompositionMethods
65 decompDataFile_(methodDict.lookup(
"dataFile"))
93 if (finalDecomp.size() !=
points.size())
96 <<
"Size of decomposition list does not correspond "
97 <<
"to the number of points. Size: "
98 << finalDecomp.size() <<
" Number of points: "
100 <<
".\n" <<
"Manual decomposition data read from file "
101 << decompDataFile_ <<
"." <<
endl
105 if (
min(finalDecomp) < 0 ||
max(finalDecomp) > nProcessors_ - 1)
108 <<
"According to the decomposition, cells assigned to "
109 <<
"impossible processor numbers. Min processor = "
110 <<
min(finalDecomp) <<
" Max processor = " <<
max(finalDecomp)
111 <<
".\n" <<
"Manual decomposition data read from file "
112 << decompDataFile_ <<
"." <<
endl
Macros for easy insertion into run-time selection tables.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Abstract base class for decomposition.
Decomposition given a cell-to-processor association in a file.
virtual labelList decompose(const polyMesh &mesh, const pointField &cellCentres, const scalarField &cellWeights)
Return for every coordinate the wanted processor number. Use the.
manual(const dictionary &decompositionDict, const dictionary &methodDict)
Construct given the decomposition dictionary.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh consisting of general polyhedral cells.
const fileName & facesInstance() const
Return the current instance directory for faces.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(metis, 0)
addToRunTimeSelectionTable(decompositionMethod, metis, decomposer)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)