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())