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.");
26 MFEMExecutedObject::addRequiredDependencyParam<VariableName>(
27 params,
"variable",
"Name of the vector variable of which to find the norm of the error.");
33 _vec_coeff(getVectorCoefficient(
"function")),
34 _var(*getMFEMProblem().getGridFunction(getParam<VariableName>(
"variable")))
mfem::GridFunction & _var
virtual void initialize() override
Perform any pre-execution setup for this object.
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
Perform the main work for this object.
static InputParameters validParams()