27 #include "phasePair.H" 33 const dictionary& dict,
37 word massTransferModelType(dict.lookup(
"type"));
39 Info<<
"Selecting massTransferModel for " 40 << pair <<
": " << massTransferModelType <<
endl;
42 dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_->find(massTransferModelType);
45 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 <<
"Unknown massTransferModelType type " 49 << massTransferModelType << endl << endl
50 <<
"Valid massTransferModel types are : " << endl
51 << dictionaryConstructorTablePtr_->sortedToc()
55 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< massTransferModel > New(const dictionary &dict, const phasePair &pair)
Ostream & endl(Ostream &os)
Add newline and flush stream.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...