36 const dictionary&
dict,
40 const word modelType(
dict.get<word>(
"type"));
42 Info<<
"Selecting reflectionModel " << modelType <<
endl;
44 auto* ctorPtr = dictionaryConstructorTable(modelType);
53 *dictionaryConstructorTablePtr_
57 return autoPtr<reflectionModel>(ctorPtr(
dict,
mesh));
errorManipArg< error, int > exit(error &err, const int errNo=1)
static autoPtr< reflectionModel > New(const dictionary &dict, const fvMesh &mesh)
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...