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")))
registerMooseObject("MooseApp", MFEML2Error)
Real PostprocessorValue
various MOOSE typedefs
Compute the L2 error for a variable.
mfem::GridFunction & _var
MFEML2Error(const InputParameters ¶meters)
virtual void execute() override
Perform the main work for this object.
static InputParameters validParams()
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
mfem::Coefficient & _coeff
virtual void initialize() override
Perform any pre-execution setup for this object.
Postprocessor for MFEM results.
static InputParameters validParams()