35 if (modelPtrs_.size())
38 <<
"attempt to re-construct cellModeller when it already exists" 45 if (models_[i].index() > maxIndex) maxIndex = models_[i].index();
48 modelPtrs_.setSize(maxIndex + 1);
57 if (modelPtrs_[models_[i].index()])
60 <<
"more than one model share the index " 65 modelPtrs_[models_[i].index()] = &models_[i];
67 if (modelDictionary_.found(models_[i].name()))
70 <<
"more than one model share the name " 75 modelDictionary_.insert(models_[i].
name(), &models_[i]);
92 if (iter != modelDictionary_.end())
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or NULL.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
~cellModeller()
Destructor.
An STL-conforming iterator.
A class for handling words, derived from string.
cellModeller()
Construct from central "cellModels" file.
word name(const complex &)
Return a string representation of a complex.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...