48 const word methodType(renumberDict.
lookup(
"method"));
50 Info<<
"Selecting renumberMethod " << methodType <<
endl;
56 dictionaryConstructorTablePtr_
59 dictionaryConstructorTable::iterator cstrIter =
60 dictionaryConstructorTablePtr_->find(methodType);
62 if (cstrIter == dictionaryConstructorTablePtr_->end())
65 <<
"Unknown renumberMethod " 66 << methodType <<
nl <<
nl 67 <<
"Valid renumberMethods are : " << endl
68 << dictionaryConstructorTablePtr_->sortedToc()
131 coarseCellCells.
list(),
139 forAll(fineDistribution, i)
141 fineDistribution[i] = coarseDistribution[fineToCoarse[i]];
144 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.
dlLibraryTable libs
Table of loaded dynamic libraries.
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.
List< Container > list() const
Convert to List<Container>
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)
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
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.