53 renumberDict.optionalSubDict(typeName+
"Coeffs").
lookup(
"dataFile")
81 if (newToOld.
size() != points.
size())
84 <<
"Size of renumber list does not correspond " 85 <<
"to the number of points. Size: " 86 << newToOld.
size() <<
" Number of points: " 88 <<
".\n" <<
"Manual renumbering data read from file " 89 << dataFile_ <<
"." <<
endl 97 label origCelli = newToOld[i];
99 if (origCelli < 0 || origCelli >= points.
size())
102 <<
"Renumbering is not one-to-one. Index " 103 << i <<
" maps onto original cell " << origCelli
104 <<
".\n" <<
"Manual renumbering data read from file " 105 << dataFile_ <<
"." <<
endl 109 if (oldToNew[origCelli] == -1)
111 oldToNew[origCelli] = i;
116 <<
"Renumbering is not one-to-one. Both index " 117 << oldToNew[origCelli]
118 <<
" and " << i <<
" map onto " << origCelli
119 <<
".\n" <<
"Manual renumbering data read from file " 120 << dataFile_ <<
"." <<
endl 125 return move(newToOld);
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fileName & facesInstance() const
Return the current instance directory for faces.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
Abstract base class for renumbering.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
manualRenumber(const dictionary &renumberDict)
Construct given the renumber dictionary.
Mesh consisting of general polyhedral cells.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...