89 if (finalDecomp.size() !=
points.size())
92 <<
"Size of decomposition list does not correspond "
93 <<
"to the number of points. Size: "
94 << finalDecomp.size() <<
" Number of points: "
96 <<
".\n" <<
"Manual decomposition data read from file "
97 << dataFile_ <<
"." <<
endl
104 if (
range.min() < 0 ||
range.max() >= nDomains_)
107 <<
"According to the decomposition, cells assigned to "
108 <<
"impossible processor numbers. Min processor = "
109 <<
range.min() <<
" Max processor = " <<
range.max()
110 <<
".\n" <<
"Manual decomposition data read from file "
111 << dataFile_ <<
"." <<
endl
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static List< label > readContents(const IOobject &io)
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A min/max value pair with additional methods. In addition to conveniently storing values,...
void size(const label n)
Older name for setAddressableSize.
Abstract base class for domain decomposition.
label nDomains_
Number of domains for the decomposition.
decompositionMethod(const label numDomains)
Construct with specified number of domains, no coefficients or constraints.
static FOAM_NO_DANGLING_REFERENCE const dictionary & findCoeffsDict(const dictionary &dict, const word &coeffsName, int select=selectionType::DEFAULT)
Locate coeffsName dictionary or the fallback "coeffs" dictionary within an enclosing dictionary.
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.
manualDecomp(const manualDecomp &)=delete
No copy construct.
virtual labelList decompose(const polyMesh &mesh, const pointField &cc, const scalarField &cWeights=scalarField::null()) const
Return for every coordinate the wanted processor number.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
MinMax< label > minMax(const labelHashSet &set)
Find the min/max values of labelHashSet.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
vectorField pointField
pointField is a vectorField.
errorManipArg< error, int > exit(error &err, const int errNo=1)