37 const word modelType(dict.
lookup(
"scatterModel"));
39 Info<<
"Selecting scatterModel " << modelType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(modelType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 "scatterModel::New(const dictionary&, const fvMesh&)" 49 ) <<
"Unknown scatterModel type " 50 << modelType <<
nl <<
nl 51 <<
"Valid scatterModel types are :" <<
nl 52 << dictionaryConstructorTablePtr_->sortedToc()
Mesh data needed to do the Finite Volume discretisation.
A class for handling words, derived from string.
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...
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< scatterModel > New(const dictionary &dict, const fvMesh &mesh)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.