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