48 Foam::manualRenumber::manualRenumber(
const dictionary& renumberDict)
53 renumberDict.subDict(typeName+
"Coeffs").
lookup(
"dataFile")
81 if (newToOld.
size() != points.
size())
85 "manualRenumber::renumber(const pointField&, const scalarField&)" 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 label origCellI = newToOld[i];
101 if (origCellI < 0 || origCellI >= points.
size())
105 "manualRenumber::renumber(const pointField&" 106 ", const scalarField&)" 107 ) <<
"Renumbering is not one-to-one. Index " 108 << i <<
" maps onto original cell " << origCellI
109 <<
".\n" <<
"Manual renumbering data read from file " 110 << dataFile_ <<
"." <<
endl 114 if (oldToNew[origCellI] == -1)
116 oldToNew[origCellI] = i;
122 "manualRenumber::renumber(const pointField&" 123 ", const scalarField&)" 124 ) <<
"Renumbering is not one-to-one. Both index " 125 << oldToNew[origCellI]
126 <<
" and " << i <<
" map onto " << origCellI
127 <<
".\n" <<
"Manual renumbering data read from file " 128 << dataFile_ <<
"." <<
endl
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
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...
Ostream & endl(Ostream &os)
Add newline and flush stream.
stressControl lookup("compactNormalStress") >> compactNormalStress
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Macros for easy insertion into run-time selection tables.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
const fileName & facesInstance() const
Return the current instance directory for faces.
Mesh consisting of general polyhedral cells.
Abstract base class for renumbering.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)