35 if (modelPtrs_.size())
37 FatalErrorIn(
"cellModeller::cellModeller(const fileName&)")
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()])
59 FatalErrorIn(
"cellModeller::cellModeller(const fileName&)")
60 <<
"more than one model share the index " 65 modelPtrs_[models_[i].index()] = &models_[i];
67 if (modelDictionary_.found(models_[i].name()))
69 FatalErrorIn(
"cellModeller::cellModeller(const fileName&)")
70 <<
"more than one model share the name " 75 modelDictionary_.insert(models_[i].
name(), &models_[i]);
95 if (iter != modelDictionary_.end())
~cellModeller()
Destructor.
word name(const complex &)
Return a string representation of a complex.
An STL-conforming iterator.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or NULL.
cellModeller()
Construct from central "cellModels" file.