27 "auto_preconditioning",
29 "When true and a [Preconditioning] block does not exist, the application will attempt to use " 30 "the correct preconditioning given the Executor settings.");
35 :
MooseObjectAction(params), _auto_preconditioning(getParam<bool>(
"auto_preconditioning"))
56 if (((solve_type.
find(
"NEWTON") != solve_type.
items().end()) && (solve_type ==
"NEWTON")) ||
57 ((solve_type.
find(
"LINEAR") != solve_type.
items().end()) && (solve_type ==
"LINEAR")))
61 params.
set<std::string>(
"type") =
"SMP";
67 std::shared_ptr<Action> ptr =
71 std::shared_ptr<MooseObjectAction> moa_ptr = std::static_pointer_cast<
MooseObjectAction>(ptr);
73 mo_params.
set<
bool>(
"full") =
true;
void addExecutorParams(const std::string &type, const std::string &name, const InputParameters ¶ms)
Adds the parameters for an Executor to the list of parameters.
const std::set< MooseEnumItem > & items() const
Return the complete set of available flags.
virtual void setupAutoPreconditioning()
const bool _auto_preconditioning
Whether to automatically add a preconditioner.
static InputParameters validParams()
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
InputParameters getValidParams(const std::string &name)
static InputParameters validParams()
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
std::shared_ptr< Action > create(const std::string &action, const std::string &action_name, InputParameters ¶meters)
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
MooseApp & _app
The MOOSE application this is associated with.
ActionFactory & _action_factory
Builds Actions.
const std::string _name
The name of this class.
std::string _type
The Object type that is being created.
bool hasActions(const std::string &task) const
Check if Actions associated with passed in task exist.
InputParameters _moose_object_pars
The parameters for the object to be created.
void associateWithParameter(const std::string ¶m_name, InputParameters ¶ms) const
Associates the object's parameters params with the input location from this Action's parameter with t...
std::set< MooseEnumItem >::const_iterator find(const MooseEnumItem &other) const
Locate an item.
registerMooseAction("MooseApp", ReadExecutorParamsAction, "read_executor")
ReadExecutorParamsAction(const InputParameters ¶ms)