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 _var_name(getParam<VariableName>(
"variable")),
34 _coeff_name(getParam<MFEMScalarCoefficientName>(
"function")),
35 _coeff(getScalarCoefficient(_coeff_name)),
36 _var(getMFEMProblem().getProblemData().gridfunctions.GetRef(_var_name))
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.
static InputParameters validParams()
virtual void execute() override
Execute method.
mfem::Coefficient & _coeff
Real PostprocessorValue
various MOOSE typedefs
registerMooseObject("MooseApp", MFEML2Error)
static InputParameters validParams()
MFEML2Error(const InputParameters ¶meters)