46 if (modelPtrs_.size())
49 <<
"attempt to re-construct cellModeller when it already exists :"
57 if (models_[i].index() > maxIndex) maxIndex = models_[i].index();
60 modelPtrs_.setSize(maxIndex + 1);
69 if (modelPtrs_[models_[i].index()])
72 <<
"more than one model share the index "
77 modelPtrs_[models_[i].index()] = &models_[i];
79 if (modelDictionary_.found(models_[i].name()))
82 <<
"more than one model share the name "
87 modelDictionary_.insert(models_[i].
name(), &models_[i]);
111 if (iter != modelDictionary_.end())
131 return modelPtrs_[i];
#define forAll(list, i)
Loop across all elements in list.
An STL-conforming iterator.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
A static collection of cell models, and a means of looking them up.
~cellModeller()
Destructor.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
cellModeller()
Construct from central "cellModels" file.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Functions to search 'etc' directories for configuration files etc.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.