26 #include "viscosityModel.H" 33 const dictionary& dict
36 word viscosityModelType(dict.lookup(
"viscosityModel"));
38 Info<<
"Selecting viscosityModel " 39 << viscosityModelType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(viscosityModelType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"viscosityModel::New(const dictionary&) : " << endl
48 <<
" unknown viscosityModelType type " 50 <<
", constructor not in hash table" << endl << endl
51 <<
" Valid viscosityModelType types are :" <<
endl;
55 return autoPtr<viscosityModel>(cstrIter()(
dict));
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< viscosityModel > New(const dictionary &dict)
errorManip< error > abort(error &err)