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.");
50 "This registered object was not constructed using the Factory, which is not supported.");
55 const std::string not_shared_error =
56 "MooseObject::getSharedPtr() must only be called for objects that are managed by a " 57 "shared pointer. Make sure this object is build using Factory::create(...).";
60 std::shared_ptr<MooseObject>
65 return shared_from_this();
67 catch (std::bad_weak_ptr &)
73 std::shared_ptr<const MooseObject>
78 return shared_from_this();
80 catch (std::bad_weak_ptr &)
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const InputParameters & parameters() const
Get the parameters of the object.
MooseObject(const InputParameters ¶meters)
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.
static InputParameters validParams()
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.
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.
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 and optionally a file path to the top-level block p...
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