45 return dict_.optionalSubDict(
type() +
"Coeffs");
62 dict.getOrDefault<
word>(
"stepUpdateType",
"bisection");
66 auto* ctorPtr = dictionaryConstructorTable(
type);
75 *dictionaryConstructorTablePtr_
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for step update methods used in line search.
const dictionary & coeffsDict()
Optional coeffs dict.
virtual void setDeriv(const scalar deriv)
Set objective derivative.
virtual void setOldMeritValue(const scalar value)
Set old merit value.
virtual void setNewMeritValue(const scalar value)
Set new merit value.
static autoPtr< stepUpdate > New(const dictionary &dict)
Return a reference to the selected turbulence model.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.