12#ifndef MFEM_CONVERGENCE
13#define MFEM_CONVERGENCE
82 AddGf(gf, scalar_u, grad, ell_coeff, jump_scaling);
89 AddGf(gf, scalar_u, grad);
96 AddGf(gf, vector_u, curl,
nullptr);
103 AddGf(gf,vector_u,
nullptr, div);
109 MFEM_VERIFY( n <= counter,
"Step out of bounds")
116 L2Errors_ = L2Errors;
122 MFEM_VERIFY(n <= dcounter,
"Step out of bounds")
135 MFEM_VERIFY(n<= fcounter,
"Step out of bounds")
136 return DGFaceErrors[n];
142 DGFaceErrors_ = DGFaceErrors;
Base class Coefficients that optionally depend on space and time. These are used by the BilinearFormI...
Class to compute error and convergence rates. It supports H1, H(curl) (ND elements),...
void AddHcurlGridFunction(GridFunction *gf, VectorCoefficient *vector_u, VectorCoefficient *curl=nullptr)
Add H(curl) GridFunction, the exact solution and possibly its curl.
void AddL2GridFunction(GridFunction *gf, Coefficient *scalar_u, VectorCoefficient *grad=nullptr, Coefficient *ell_coeff=nullptr, JumpScaling jump_scaling={1.0, JumpScaling::ONE_OVER_H})
void GetDErrors(Array< real_t > &DErrors_)
Get all Grad/Curl/Div errors.
real_t GetL2Error(int n)
Get the L2 error at step n.
void GetL2Errors(Array< real_t > &L2Errors_)
Get all L2 errors.
real_t GetDError(int n)
Get the Grad/Curl/Div error at step n.
void AddHdivGridFunction(GridFunction *gf, VectorCoefficient *vector_u, Coefficient *div=nullptr)
Add H(div) GridFunction, the exact solution and possibly its div.
void Reset()
Clear any internal data.
void GetDGFaceJumpsErrors(Array< real_t > &DGFaceErrors_)
Get all DGFaceJumps errors.
real_t GetDGFaceJumpsError(int n)
Get the DGFaceJumps error at step n.
void AddH1GridFunction(GridFunction *gf, Coefficient *scalar_u, VectorCoefficient *grad=nullptr)
Add H1 GridFunction, the exact solution and possibly its gradient.
void Print(bool relative=false, std::ostream &out=mfem::out)
Print rates and errors.
Class for grid function - Vector with associated FE space.
Base class for vector Coefficients that optionally depend on time and space.
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...