32 const word& modelTypeName,
33 const dictionary& dict,
34 const phaseInterface& interface
37 const word blendingMethodType(dict.lookup(
"type"));
39 Info<<
"Selecting " << modelTypeName <<
" blending method for " 40 << interface.name() <<
": " << blendingMethodType <<
endl;
42 dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_->find(blendingMethodType);
45 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 <<
"Unknown blendingMethodType type " 49 << blendingMethodType << endl << endl
50 <<
"Valid blendingMethod types are : " << endl
51 << dictionaryConstructorTablePtr_->sortedToc()
55 return cstrIter()(
dict, interface);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< blendingMethod > New(const word &modelTypeName, const dictionary &dict, const phaseInterface &interface)
Ostream & endl(Ostream &os)
Add newline and flush stream.