10 #ifdef MOOSE_MFEM_ENABLED 22 "Computes L2 error $\\left\\Vert \\vec u_{ex} - \\vec u_{h}\\right\\Vert_{\\rm L2}$ for " 23 "vector gridfunctions.");
24 params.
addParam<MFEMVectorCoefficientName>(
"function",
25 "The analytic solution to compare against.");
27 "variable",
"Name of the vector variable of which to find the norm of the error.");
33 _vec_coeff(getVectorCoefficient(
"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.
MFEMVectorL2Error(const InputParameters ¶meters)
Compute the L2 error for a vector variable.
mfem::VectorCoefficient & _vec_coeff
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
Postprocessor for MFEM results.
Real PostprocessorValue
various MOOSE typedefs
registerMooseObject("MooseApp", MFEMVectorL2Error)
static InputParameters validParams()
virtual void execute() override
Execute method.
static InputParameters validParams()