26 #include "blendingMethod.H" 32 const dictionary& dict,
36 word blendingMethodType(dict.lookup(
"type"));
38 Info<<
"Selecting " << dict.dictName() <<
" blending method: " 39 << blendingMethodType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(blendingMethodType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"Unknown blendingMethodType type " 48 << blendingMethodType << endl << endl
49 <<
"Valid blendingMethod types are : " << endl
50 << dictionaryConstructorTablePtr_->sortedToc()
54 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...