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 params.
addParam<VariableName>(
"variable",
27 "Name of the variable of which to find the norm of the error.");
33 _coeff(getScalarCoefficient(
"function")),
34 _var(getMFEMProblem().getProblemData().gridfunctions.GetRef(getParam<VariableName>(
"variable")))
mfem::GridFunction & _var
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
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
Execute method.
mfem::Coefficient & _coeff
Real PostprocessorValue
various MOOSE typedefs
registerMooseObject("MooseApp", MFEML2Error)
static InputParameters validParams()
MFEML2Error(const InputParameters ¶meters)