33 const dictionary& dict,
34 const phaseInterface& interface,
38 const dictionary& modelDict =
41 const word saturationModelType(modelDict.lookup(
"type"));
43 Info<<
"Selecting saturationModel for " 44 << interface.name() <<
": " << saturationModelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(saturationModelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown saturationModelType type " 53 << saturationModelType << endl << endl
54 <<
"Valid saturationModel types are : " << endl
55 << dictionaryConstructorTablePtr_->sortedToc()
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
saturationModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< saturationModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)
const phaseInterface & interface() const
Access the interface.