37 const word distributionType(
dict.lookup(
"type"));
39 Info<<
"Selecting " << typeName <<
" type " << distributionType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(distributionType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"Unknown " << typeName <<
" type " << distributionType
48 <<
nl <<
nl <<
"Valid " << typeName <<
" types are:" <<
nl
49 << dictionaryConstructorTablePtr_->sortedToc()
59 dict.optionalSubDict(distributionType +
"Distribution"),
67 return distributionPtr;
A list of keyword definitions, which are a keyword followed by any number of values (e....
static autoPtr< distribution > New(const dictionary &dict, Random &rndGen, const label sampleQ)
Selector.
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 & decrIndent(Ostream &os)
Decrement the indent level.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.