https://mooseframework.inl.gov
AddMFEMProblemOperatorAction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #ifdef MFEM_ENABLED
11 
13 
14 registerMooseAction("MooseApp", AddMFEMProblemOperatorAction, "add_mfem_problem_operator");
15 
18 {
20  params.addClassDescription(
21  "Set the ProblemOperator used in the MFEMExecutioner to solve the FE problem.");
22  return params;
23 }
24 
26  : Action(parameters)
27 {
28 }
29 
30 void
32 {
33  MFEMProblem * mfem_problem = dynamic_cast<MFEMProblem *>(_problem.get());
34  if (mfem_problem)
35  mfem_problem->initProblemOperator();
36 }
37 
38 #endif
AddMFEMProblemOperatorAction(const InputParameters &parameters)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void initProblemOperator()
Initialise the required ProblemOperator used in the Executioner to solve the problem.
Definition: MFEMProblem.C:57
Base class for actions.
Definition: Action.h:33
static InputParameters validParams()
Definition: Action.C:24
This class implements the action controlling the construction of the required MFEM ProblemOperator...
registerMooseAction("MooseApp", AddMFEMProblemOperatorAction, "add_mfem_problem_operator")
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
Definition: Action.h:168