22 params.
addParam<std::string>(
"type",
"Split",
"Classname of the split object");
23 params.
addParam<std::vector<NonlinearVariableName>>(
"vars",
"variables for this field");
28 "Names of PETSc name/value pairs");
29 params.
addParam<std::vector<std::string>>(
30 "petsc_options_value",
31 "Values of PETSc name/value pairs (must correspond with \"petsc_options_iname\"");
32 params.
addParam<NonlinearSystemName>(
33 "nl_sys",
"nl0",
"The nonlinear system that this split belongs to");
44 _problem->getNonlinearSystemBase(
_problem->nlSysNum(getParam<NonlinearSystemName>(
"nl_sys")))
MultiMooseEnum getCommonPetscKeys()
A helper function to produce a MultiMooseEnum with commonly used PETSc iname options (keys in key-val...
static InputParameters validParams()
registerMooseAction("MooseApp", AddFieldSplitAction, "add_field_split")
MultiMooseEnum getCommonPetscFlags()
A helper function to produce a MultiMooseEnum with commonly used PETSc single options (flags) ...
void act()
Method to add objects to the simulation or perform other setup tasks.
AddFieldSplitAction(const InputParameters ¶ms)
static InputParameters validParams()
const std::string _name
The name of this class.
std::string _type
The Object type that is being created.
InputParameters _moose_object_pars
The parameters for the object to be created.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...