Go to the documentation of this file.
50 Foam::manualRenumber::manualRenumber(
const dictionary& renumberDict)
55 renumberDict.optionalSubDict(typeName+
"Coeffs").
lookup(
"dataFile")
82 if (newToOld.size() !=
points.size())
85 <<
"Size of renumber list does not correspond "
86 <<
"to the number of points. Size: "
87 << newToOld.size() <<
" Number of points: "
89 <<
".\n" <<
"Manual renumbering data read from file "
90 << dataFile_ <<
"." <<
endl
98 const label origCelli = newToOld[i];
100 if (origCelli < 0 || origCelli >=
points.size())
103 <<
"Renumbering is not one-to-one. Index "
104 << i <<
" maps onto original cell " << origCelli
105 <<
".\n" <<
"Manual renumbering data read from file "
106 << dataFile_ <<
"." <<
endl
110 if (oldToNew[origCelli] == -1)
112 oldToNew[origCelli] = i;
117 <<
"Renumbering is not one-to-one. Both index "
118 << oldToNew[origCelli]
119 <<
" and " << i <<
" map onto " << origCelli
120 <<
".\n" <<
"Manual renumbering data read from file "
121 << dataFile_ <<
"." <<
endl
126 return std::move(newToOld);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
const fileName & facesInstance() const
Return the current instance directory for faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Lookup type of boundary radiation properties.
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Abstract base class for renumbering.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(combustionModel, 0)