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.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A static collection of cell models, and a means of looking them up.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
~cellModeller()
Destructor.
An STL-conforming iterator.
A class for handling words, derived from string.
Functions to search 'etc' directories for configuration files etc.
An STL-conforming hash table.
fileName findEtcFile(const fileName &, bool mandatory=false)
Search for a file using findEtcFiles.
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...