26 #include "aspectRatioModel.H" 27 #include "phasePair.H" 34 const dictionary& dict,
38 word aspectRatioModelType(dict.lookup(
"type"));
40 Info<<
"Selecting aspectRatioModel for " 41 << pair <<
": " << aspectRatioModelType <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(aspectRatioModelType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown aspectRatioModelType type " 50 << aspectRatioModelType << endl << endl
51 <<
"Valid aspectRatioModel types are : " << endl
52 << dictionaryConstructorTablePtr_->sortedToc()
56 return cstrIter()(
dict, pair);
static autoPtr< aspectRatioModel > New(const dictionary &dict, const phasePair &pair)
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.