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());
registerMooseAction("MooseApp", SetMFEMMeshFESpaceAction, "set_mesh_fe_space")
static InputParameters validParams()
std::shared_ptr< FEProblemBase > & _problem
Convenience reference to a problem this action works on.
mfem::ParMesh & getMFEMParMesh()
Accessors for the _mfem_par_mesh object.
virtual MFEMMesh & mesh() override
Overwritten mesh() method from base MooseMesh to retrieve the correct mesh type, in this case MFEMMes...
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()