22 params.
addParam<
MooseEnum>(
"fec_type", fec_types,
"Specifies the family of FE shape functions.");
24 "basis",
"GaussLobatto",
"Specifies the quadrature basis used for scalar elements.");
37 const char b = mfem::BasisType::GetChar(
getBasis(getParam<std::string>(
"basis")));
38 std::string basis(1, b);
43 basis = (basis ==
"G" ?
"" :
"@" + basis);
47 mooseInfo(
"L2 finite element space only supports GaussLegendre basis. Ignoring " +
48 getParam<std::string>(
"basis") +
49 " basis choice and using GaussLegendre instead.\n");
registerMooseObject("MooseApp", MFEMScalarFESpace)
virtual int getVDim() const override
Get the number of degrees of freedom per basis function needed in this finite element space...
void mooseInfo(Args &&... args) const
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
int getBasis(const std::string &basis_name) const
Get the quadrature basis enum associated with the given name.
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
MFEMScalarFESpace(const InputParameters ¶meters)
const int _fec_order
Order of the basis functions in the finite element collection.
virtual std::string getFECName() const override
Get the name of the desired FECollection.
static InputParameters validParams()
const std::string _fec_type
Name of the family of finite element collections to use.
int getProblemDim() const
Returns the dimension of the problem (i.e., the highest dimension of the reference elements in the me...
Class with common parameters for MFEMVectorFESpace and MFEMScalarFESpace.