32 const dictionary& dict,
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, pair);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< saturationModel > New(const dictionary &dict, const phasePair &pair)
Select null constructed.
Ostream & endl(Ostream &os)
Add newline and flush stream.