56 dict.optionalSubDict(typeName+
"Coeffs").get<
fileName>(
"dataFile")
86 <<
"Size of renumber list does not correspond "
87 <<
"to the number of points. Size: "
88 << newToOld.
size() <<
" Number of points: "
90 <<
".\n" <<
"Manual renumbering data read from file "
91 << dataFile_ <<
"." <<
endl
99 const label origCelli = newToOld[i];
101 if (origCelli < 0 || origCelli >=
points.
size())
104 <<
"Renumbering is not one-to-one. Index "
105 << i <<
" maps onto original cell " << origCelli
106 <<
".\n" <<
"Manual renumbering data read from file "
107 << dataFile_ <<
"." <<
endl
111 if (oldToNew[origCelli] == -1)
113 oldToNew[origCelli] = i;
118 <<
"Renumbering is not one-to-one. Both index "
119 << oldToNew[origCelli]
120 <<
" and " << i <<
" map onto " << origCelli
121 <<
".\n" <<
"Manual renumbering data read from file "
122 << dataFile_ <<
"." <<
endl
127 return std::move(newToOld);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Renumber given a ordered-to-original cell association in a file.
virtual labelList renumber(const pointField &) const
Mesh consisting of general polyhedral cells.
const fileName & facesInstance() const
Return the current instance directory for faces.
Abstract base class for renumbering.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.