48 Foam::manualRenumber::manualRenumber(
const dictionary& renumberDict)
53 renumberDict.subDict(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 #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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
const fileName & facesInstance() const
Return the current instance directory for faces.
#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
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
Mesh consisting of general polyhedral cells.
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...