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 "MFEMSimplifiedFESpace.h" 13 : #include "MFEMProblem.h" 14 : 15 : InputParameters 16 17780 : MFEMSimplifiedFESpace::validParams() 17 : { 18 17780 : InputParameters params = MFEMFESpace::validParams(); 19 17780 : params.addClassDescription("Base class for the simplified interfaces to build MFEM finite " 20 : "element spaces. It provides the common parameters."); 21 : MooseEnum fec_order( 22 : "CONSTANT FIRST SECOND THIRD FOURTH FIFTH SIXTH SEVENTH EIGHTH NINTH TENTH ELEVENTH TWELFTH" 23 : "THIRTEENTH FOURTEENTH FIFTEENTH SIXTEENTH SEVENTEENTH EIGHTTEENTH NINETEENTH TWENTIETH " 24 : "TWENTYFIRST TWENTYSECOND TWENTYTHIRD TWENTYFOURTH TWENTYFIFTH TWENTYSIXTH TWENTYSEVENTH " 25 : "TWENTYEIGHTH TWENTYNINTH THIRTIETH THIRTYFIRST THIRTYSECOND THIRTYTHIRD THIRTYFOURTH " 26 : "THIRTYFIFTH THIRTYSIXTH THIRTYSEVENTH THIRTYEIGHTH THIRTYNINTH FORTIETH FORTYFIRST" 27 : "FORTYSECOND FORTYTHIRD", 28 : "FIRST", 29 17780 : true); 30 17780 : params.addParam<MooseEnum>("fec_order", fec_order, "Order of the FE shape function to use."); 31 35560 : return params; 32 17780 : } 33 : 34 260 : MFEMSimplifiedFESpace::MFEMSimplifiedFESpace(const InputParameters & parameters) 35 260 : : MFEMFESpace(parameters), _fec_order(parameters.get<MooseEnum>("fec_order")) 36 : { 37 260 : } 38 : 39 : int 40 274 : MFEMSimplifiedFESpace::getProblemDim() const 41 : { 42 274 : return getMFEMProblem().mesh().getMFEMParMesh().Dimension(); 43 : } 44 : 45 : #endif