https://mooseframework.inl.gov
MFEMIndicator.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 MOOSE_MFEM_ENABLED
11 
12 #include "MFEMIndicator.h"
13 #include "MFEMProblem.h"
14 
17 {
19  params.registerBase("Indicator");
20  params.registerSystemAttributeName("Indicator");
21 
22  params.addRequiredParam<VariableName>("variable", "Variable to perform amr with");
23  params.addRequiredParam<std::string>("kernel", "Kernel to perform amr with");
24  return params;
25 }
26 
28  : MFEMObject(params),
29  _var_name(getParam<VariableName>("variable")),
30  _kernel_name(getParam<std::string>("kernel")),
31  _fespace(*getMFEMProblem().getGridFunction(_var_name)->ParFESpace())
32 {
33 }
34 
35 #endif
Thin base for MFEM objects backed directly by MooseObject instead of UserObject.
Definition: MFEMObject.h:25
static InputParameters validParams()
Definition: MFEMIndicator.C:16
void registerSystemAttributeName(const std::string &value)
This method is used to define the MOOSE system name that is used by the TheWarehouse object for stori...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
MFEMIndicator(const InputParameters &params)
Definition: MFEMIndicator.C:27
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System...
static InputParameters validParams()
Declare the common parameters required by MFEM MooseObject-backed classes.
Definition: MFEMObject.C:17