26 #include "conductivityModel.H" 33 const dictionary& dict
36 word conductivityModelType(dict.lookup(
"conductivityModel"));
38 Info<<
"Selecting conductivityModel " 39 << conductivityModelType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(conductivityModelType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"conductivityModel::New(const dictionary&) : " << endl
48 <<
" unknown conductivityModelType type " 49 << conductivityModelType
50 <<
", constructor not in hash table" << endl << endl
51 <<
" Valid conductivityModelType types are :" <<
endl;
55 return autoPtr<conductivityModel>(cstrIter()(
dict));
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< conductivityModel > New(const dictionary &dict)
errorManip< error > abort(error &err)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...