10 #ifdef MOOSE_MFEM_ENABLED 20 params.
addClassDescription(
"Set the mesh nodal finite element space to the same as the mesh " 21 "displacement variable, if one is specified.");
35 auto & mfem_problem =
static_cast<MFEMProblem &
>(*_problem);
36 if (
const auto displacement = mfem_problem.getMeshDisplacementGridFunction())
37 mfem_problem.
mesh().
getMFEMParMesh().SetNodalFESpace(displacement.value().get().ParFESpace());
virtual MFEMMesh & mesh() override
Overwritten mesh() method from base MooseMesh to retrieve the correct mesh type, in this case MFEMMes...
SetMFEMMeshFESpaceAction(const InputParameters ¶meters)
static InputParameters validParams()
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
mfem::ParMesh & getMFEMParMesh()
Accessors for the _mfem_par_mesh object.
registerMooseAction("MooseApp", SetMFEMMeshFESpaceAction, "set_mesh_fe_space")
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
static InputParameters validParams()
This class implements the action ensuring the mesh uses the same FE space as the displacement for mes...