32 const dictionary& dict,
33 const objectRegistry& db
36 word saturationModelType(dict.lookup(
"type"));
38 Info<<
"Selecting saturationModel: " 39 << saturationModelType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(saturationModelType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"Unknown saturationModelType type " 48 << saturationModelType << endl << endl
49 <<
"Valid saturationModel types are : " << endl
50 << dictionaryConstructorTablePtr_->sortedToc()
54 return cstrIter()(
dict,
db);
errorManipArg< error, int > exit(error &err, const int errNo=1)
static autoPtr< saturationModel > New(const dictionary &dict, const objectRegistry &db)
Select null constructed.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const objectRegistry & db() const
Return the local objectRegistry.