74 const label nCells =
mesh.nCells();
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
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static List< label > readContents(const IOobject &io)
@ MUST_READ
Reading required.
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.
manualRenumber(const fileName &file)
Construct with given data file.
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...
Mesh consisting of general polyhedral cells.
Abstract base class for renumbering.
renumberMethod()
Default construct.
#define defineTypeName(Type)
Define the typeName.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< label > labelList
A List of labels.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.