26 #include "blendingMethod.H" 32 const word& modelName,
33 const dictionary& dict,
37 word blendingMethodType(dict.lookup(
"type"));
39 Info<<
"Selecting " << modelName <<
" blending method: " 40 << 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, phaseNames);
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< blendingMethod > New(const word &modelName, const dictionary &dict, const wordList &phaseNames)
List< word > wordList
A List of words.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...