Line data Source code
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 : 15 : InputParameters 16 2150 : MFEMIndicator::validParams() 17 : { 18 2150 : InputParameters params = MFEMObject::validParams(); 19 4300 : params.registerBase("Indicator"); 20 4300 : params.registerSystemAttributeName("Indicator"); 21 : 22 8600 : params.addRequiredParam<VariableName>("variable", "Variable to perform amr with"); 23 6450 : params.addRequiredParam<std::string>("kernel", "Kernel to perform amr with"); 24 2150 : return params; 25 0 : } 26 : 27 26 : MFEMIndicator::MFEMIndicator(const InputParameters & params) 28 : : MFEMObject(params), 29 26 : _var_name(getParam<VariableName>("variable")), 30 52 : _kernel_name(getParam<std::string>("kernel")), 31 52 : _fespace(*getMFEMProblem().getGridFunction(_var_name)->ParFESpace()) 32 : { 33 26 : } 34 : 35 : #endif