49 Info<<
"Selecting " << waveModel::typeName <<
" " <<
type <<
endl;
52 dictionaryConstructorTable::iterator cstrIter =
53 dictionaryConstructorTablePtr_->find(
type);
55 if (cstrIter == dictionaryConstructorTablePtr_->end())
58 <<
"Unknown " << waveModel::typeName <<
" " <<
type <<
nl <<
nl
59 <<
"Valid model types are:" <<
nl
60 << dictionaryConstructorTablePtr_->sortedToc()
64 return cstrIter()(
dict, g);
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalar g() const
Get the value of gravity.
static autoPtr< waveModel > New(const dictionary &dict, const scalar g)
Select.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.