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 MFEM_ENABLED 11 : 12 : #include "AddMFEMFESpaceAction.h" 13 : 14 : registerMooseAction("MooseApp", AddMFEMFESpaceAction, "add_mfem_fespaces"); 15 : 16 : InputParameters 17 318 : AddMFEMFESpaceAction::validParams() 18 : { 19 318 : InputParameters params = MooseObjectAction::validParams(); 20 318 : params.addClassDescription("Add a MFEM FESpace object to the simulation."); 21 318 : return params; 22 0 : } 23 : 24 198 : AddMFEMFESpaceAction::AddMFEMFESpaceAction(const InputParameters & parameters) 25 198 : : MooseObjectAction(parameters) 26 : { 27 198 : } 28 : 29 : void 30 198 : AddMFEMFESpaceAction::act() 31 : { 32 198 : MFEMProblem * mfem_problem = dynamic_cast<MFEMProblem *>(_problem.get()); 33 198 : if (mfem_problem) 34 198 : mfem_problem->addFESpace(_type, _name, _moose_object_pars); 35 198 : } 36 : 37 : #endif