49 Info<<
"Selecting " << waveModel::typeName <<
" " << type <<
endl;
52 objectRegistryConstructorTable::iterator cstrIter =
53 objectRegistryConstructorTablePtr_->find(type);
55 if (cstrIter == objectRegistryConstructorTablePtr_->end())
58 <<
"Unknown " << waveModel::typeName <<
" " << type <<
nl <<
nl 59 <<
"Valid model types are:" <<
nl 60 << objectRegistryConstructorTablePtr_->sortedToc()
64 return cstrIter()(db,
dict);
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
static autoPtr< waveModel > New(const objectRegistry &db, const dictionary &dict)
Select.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Registry of regIOobjects.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.