33 const dictionary& dict,
37 word dragModelType(dict.lookup(
"type"));
39 Info<<
"Selecting dragModel for " 40 << pair <<
": " << dragModelType <<
endl;
42 dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_->find(dragModelType);
45 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 <<
"Unknown dragModelType type " 49 << dragModelType << endl << endl
50 <<
"Valid dragModel types are : " << endl
51 << dictionaryConstructorTablePtr_->sortedToc()
55 return cstrIter()(
dict, pair,
true);
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< dragModel > New(const dictionary &dict, const phasePair &pair)