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 "AddMFEMProblemOperatorAction.h" 13 : 14 : registerMooseAction("MooseApp", AddMFEMProblemOperatorAction, "add_mfem_problem_operator"); 15 : 16 : InputParameters 17 39042 : AddMFEMProblemOperatorAction::validParams() 18 : { 19 39042 : InputParameters params = Action::validParams(); 20 39042 : params.addClassDescription( 21 : "Set the ProblemOperator used in the MFEMExecutioner to solve the FE problem."); 22 39042 : return params; 23 0 : } 24 : 25 39042 : AddMFEMProblemOperatorAction::AddMFEMProblemOperatorAction(const InputParameters & parameters) 26 39042 : : Action(parameters) 27 : { 28 39042 : } 29 : 30 : void 31 36688 : AddMFEMProblemOperatorAction::act() 32 : { 33 36688 : MFEMProblem * mfem_problem = dynamic_cast<MFEMProblem *>(_problem.get()); 34 36688 : if (mfem_problem) 35 134 : mfem_problem->initProblemOperator(); 36 36688 : } 37 : 38 : #endif