10 #ifdef MOOSE_MFEM_ENABLED 22 "Computes L2 error $\\left\\Vert u_{ex} - u_{h}\\right\\Vert_{\\rm L2}$ for " 23 "gridfunctions using H1 or L2 elements.");
24 params.
addParam<MFEMScalarCoefficientName>(
"function",
25 "The analytic solution to compare against.");
26 MFEMExecutedObject::addRequiredDependencyParam<VariableName>(
27 params,
"variable",
"Name of the variable of which to find the norm of the error.");
33 _coeff(getScalarCoefficient(
"function")),
34 _var(*getMFEMProblem().getGridFunction(getParam<VariableName>(
"variable")))
mfem::GridFunction & _var
virtual void initialize() override
Perform any pre-execution setup for this object.
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
Compute the L2 error for a variable.
static InputParameters validParams()
Postprocessor for MFEM results.
virtual void execute() override
Perform the main work for this object.
mfem::Coefficient & _coeff
Real PostprocessorValue
various MOOSE typedefs
registerMooseObject("MooseApp", MFEML2Error)
static InputParameters validParams()
MFEML2Error(const InputParameters ¶meters)