42 bool use_nonlinear =
true;
43 bool use_eigenvalue =
false;
48 use_nonlinear = !(exparams.isParamValid(
"_eigen") && exparams.get<
bool>(
"_eigen"));
50 (exparams.isParamValid(
"_use_eigen_value") && exparams.get<
bool>(
"_use_eigen_value"));
59 if (
_mesh.get() != NULL)
66 type =
"EigenProblem";
78 params.applyParameters(p->getObjectParams());
83 params.set<
bool>(
"solve") = getParam<bool>(
"_solve");
91 mooseError(
"Problem has to be of a EigenProblem (or derived subclass) type when using "
registerMooseAction("MooseApp", CreateProblemDefaultAction, "create_problem_default")
const T * getActionByTask(const std::string &task)
Retrieve the action on a specific task with its type.
std::shared_ptr< MooseMesh > & _mesh
static InputParameters validParams()
MooseApp & _app
The MOOSE application this is associated with.
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
const std::string & _current_task
The current action (even though we have separate instances for each action)
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
static InputParameters validParams()
CreateProblemDefaultAction(const InputParameters ¶meters)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
InputParameters getValidParams(const std::string &name) const
Get valid parameters for the object.
bool & useNonlinear()
Returns a writable Boolean indicating whether this app will use a Nonlinear or Eigen System.
Moose::Builder & builder()
Returns a writable reference to the builder.
bool & useEigenvalue()
Returns a writable Boolean indicating whether this app will use an eigenvalue executioner.
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 InputParameters & _pars
The object's parameters.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
InputParameters & getObjectParams()
Retrieve the parameters of the object to be created by this action.
void extractParams(const hit::Node *const section_node, InputParameters &p)
Attempt to extract values from input starting with the section in input in section_node based on the ...
Factory & _factory
The Factory associated with the MooseApp.