47 const word methodType(renumberDict.
lookup(
"method"));
51 dictionaryConstructorTable::iterator cstrIter =
52 dictionaryConstructorTablePtr_->find(methodType);
54 if (cstrIter == dictionaryConstructorTablePtr_->end())
57 <<
"Unknown renumberMethod " 58 << methodType <<
nl <<
nl 59 <<
"Valid renumberMethods are : " <<
endl 60 << dictionaryConstructorTablePtr_->sortedToc()
85 return renumber(cellCells(), points);
131 forAll(fineDistribution, i)
133 fineDistribution[i] = coarseDistribution[fineToCoarse[i]];
136 return fineDistribution;
ListType renumber(const labelUList &oldToNew, const ListType &)
Renumber the values (not the indices) of a list.
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
#define forAll(list, i)
Loop across all elements in list.
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...
#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.
static autoPtr< renumberMethod > New(const dictionary &renumberDict)
Return a reference to the selected renumbering method.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
static void calcCellCells(const polyMesh &mesh, const labelList &agglom, const label nLocalCoarse, const bool global, CompactListList< label > &cellCells)
Helper: determine (local or global) cellCells from mesh.
A class for handling words, derived from string.
List< label > labelList
A List of labels.
A packed storage unstructured matrix of objects of type <T> using an offset table for access...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
Mesh consisting of general polyhedral cells.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.