Go to the documentation of this file.
51 Foam::manualRenumber::manualRenumber(
const dictionary& renumberDict)
56 renumberDict.optionalSubDict(typeName+
"Coeffs")
84 if (newToOld.size() !=
points.size())
87 <<
"Size of renumber list does not correspond "
88 <<
"to the number of points. Size: "
89 << newToOld.size() <<
" Number of points: "
91 <<
".\n" <<
"Manual renumbering data read from file "
92 << dataFile_ <<
"." <<
endl
100 const label origCelli = newToOld[i];
102 if (origCelli < 0 || origCelli >=
points.size())
105 <<
"Renumbering is not one-to-one. Index "
106 << i <<
" maps onto original cell " << origCelli
107 <<
".\n" <<
"Manual renumbering data read from file "
108 << dataFile_ <<
"." <<
endl
112 if (oldToNew[origCelli] == -1)
114 oldToNew[origCelli] = i;
119 <<
"Renumbering is not one-to-one. Both index "
120 << oldToNew[origCelli]
121 <<
" and " << i <<
" map onto " << origCelli
122 <<
".\n" <<
"Manual renumbering data read from file "
123 << dataFile_ <<
"." <<
endl
128 return std::move(newToOld);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
const fileName & facesInstance() const
Return the current instance directory for faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Abstract base class for renumbering.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
defineTypeNameAndDebug(combustionModel, 0)