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 = cast_ref<MFEMProblem &>(*
_problem);
36 if (
const auto displacement = mfem_problem.getMeshDisplacementGridFunction())
37 mfem_problem.mesh().getMFEMParMesh().SetNodalFESpace(displacement.value().get().ParFESpace());
registerMooseAction("MooseApp", SetMFEMMeshFESpaceAction, "set_mesh_fe_space")
static InputParameters validParams()
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
This class implements the action ensuring the mesh uses the same FE space as the displacement for mes...
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
SetMFEMMeshFESpaceAction(const InputParameters ¶meters)
static InputParameters validParams()