28 params.
addParam<
bool>(
"enable",
true,
"Set the enabled status of the MooseObject.");
29 params.
addParam<std::vector<std::string>>(
31 "Adds user-defined labels for accessing object parameters via control logic.");
57 "This registered object was not constructed using the Factory, which is not supported.");
62 const std::string not_shared_error =
63 "MooseObject::getSharedPtr() must only be called for objects that are managed by a " 64 "shared pointer. Make sure this object is build using Factory::create(...).";
67 std::shared_ptr<MooseObject>
72 return shared_from_this();
74 catch (std::bad_weak_ptr &)
80 std::shared_ptr<const MooseObject>
85 return shared_from_this();
87 catch (std::bad_weak_ptr &)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
MooseObject(const InputParameters ¶meters)
Base class for MOOSE-based applications.
std::shared_ptr< MooseObject > getSharedPtr()
Get another shared pointer to this object that has the same ownership group.
Base class for a system (of equations)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Factory & getFactory()
Retrieve a writable reference to the Factory associated with this App.
const bool & _enabled
Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.
const std::string & type() const
Get the type of this class.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Base class for transient executioners that use a FixedPointSolve solve object for multiapp-main app i...
MooseApp & _app
The MOOSE application this is associated with.
T getCheckedPointerParam(const std::string &name, const std::string &error_string="") const
Verifies that the requested parameter exists and is not NULL and returns it to the caller...
static bool isRegisteredObj(const std::string &name)
Generic class for solving transient nonlinear problems.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
Problem for solving eigenvalue problems.
static InputParameters validParams()
Base class shared by both Action and MooseObject.
A system that holds auxiliary variables.
const InputParameters * currentlyConstructing() const