91 if (newToOld.size() != nCells)
94 <<
"Size of renumber list: " 95 << newToOld.size() <<
" != number of cells: " << nCells <<
nl 96 <<
"Renumbering data read from file " << dataFile_ <<
endl 104 const label origCelli = newToOld[i];
106 if (origCelli < 0 || origCelli >= nCells)
109 <<
"Renumbering range error. Index " << i
110 <<
" maps to cell " << origCelli <<
" from " << nCells <<
nl 111 <<
"Renumbering data read from file " << dataFile_ <<
endl 115 if (oldToNew[origCelli] == -1)
117 oldToNew[origCelli] = i;
122 <<
"Renumbering is not one-to-one. Index " << i <<
" and " 123 << oldToNew[origCelli] <<
" map onto " << origCelli <<
nl 124 <<
"Renumbering data read from file " << dataFile_ <<
endl List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fileName & facesInstance() const
Return the current instance directory for faces.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
manualRenumber(const fileName &file)
Construct with given data file.
Macros for easy insertion into run-time selection tables.
virtual const objectRegistry & thisDb() const
Return the object registry - resolve conflict polyMesh/lduMesh.
#define forAll(list, i)
Loop across all elements in list.
defineTypeName(manifoldCellsMeshObject)
Abstract base class for renumbering.
static List< label > readContents(const IOobject &io)
Read and return contents. The IOobject is never registered.
virtual labelList renumber(const polyMesh &mesh) const
Return the cell visit order (from ordered back to original cell id) using the mesh for its IOobject a...
label nCells() const noexcept
Number of mesh cells.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported...
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)