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 "AddMFEMQuadratureFunctionAction.h" 13 : 14 : registerMooseAction("MooseApp", AddMFEMQuadratureFunctionAction, "add_mfem_quadrature_functions"); 15 : 16 : InputParameters 17 62 : AddMFEMQuadratureFunctionAction::validParams() 18 : { 19 62 : InputParameters params = MooseObjectAction::validParams(); 20 62 : params.addClassDescription("Add an MFEM quadrature function coefficient to the simulation."); 21 62 : return params; 22 0 : } 23 : 24 34 : AddMFEMQuadratureFunctionAction::AddMFEMQuadratureFunctionAction(const InputParameters & parameters) 25 34 : : MooseObjectAction(parameters) 26 : { 27 34 : } 28 : 29 : void 30 34 : AddMFEMQuadratureFunctionAction::act() 31 : { 32 34 : if (_problem->feBackend() == Moose::FEBackend::MFEM) 33 34 : static_cast<MFEMProblem &>(*_problem).addQuadratureFunction(_type, _name, _moose_object_pars); 34 34 : } 35 : 36 : #endif