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.");
52 "This registered object was not constructed using the Factory, which is not supported.");
57const std::string not_shared_error =
58 "MooseObject::getSharedPtr() must only be called for objects that are managed by a "
59 "shared pointer. Make sure this object is build using Factory::create(...).";
62#ifdef MOOSE_KOKKOS_ENABLED
69std::shared_ptr<MooseObject>
74 return shared_from_this();
76 catch (std::bad_weak_ptr &)
82std::shared_ptr<const MooseObject>
87 return shared_from_this();
89 catch (std::bad_weak_ptr &)
A system that holds auxiliary variables.
Problem for solving eigenvalue problems.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const InputParameters * currentlyConstructing() const
Factory & getFactory()
Retrieve a writable reference to the Factory associated with this App.
const InputParameters & parameters() const
Get the parameters of the object.
const std::string & type() const
Get the type of this class.
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...
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Every object that can be built by the factory should be derived from this class.
const bool & _enabled
Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.
MooseObject(const InputParameters ¶meters)
static InputParameters validParams()
std::shared_ptr< MooseObject > getSharedPtr()
Get another shared pointer to this object that has the same ownership group.
MooseApp & _app
The MOOSE application this is associated with.
Base class shared by both Action and MooseObject.
static InputParameters validParams()
static bool isRegisteredObj(const std::string &name)
An interface that allows the marking of invalid solutions during a solve.
Generic class for solving transient nonlinear problems.
Base class for a system (of equations)
Base class for transient executioners that use a FixedPointSolve solve object for multiapp-main app i...