12 #ifndef MFEM_CONVERGENCE
13 #define MFEM_CONVERGENCE
15 #include "../linalg/linalg.hpp"
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;
151 #endif // MFEM_CONVERGENCE
Class for grid function - Vector with associated FE space.
void Reset()
Clear any internal data.
Base class for vector Coefficients that optionally depend on time and space.
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 AddHdivGridFunction(GridFunction *gf, VectorCoefficient *vector_u, Coefficient *div=nullptr)
Add H(div) GridFunction, the exact solution and possibly its div.
void GetDGFaceJumpsErrors(Array< double > &DGFaceErrors_)
Get all DGFaceJumps errors.
double GetL2Error(int n)
Get the L2 error at step n.
void GetDErrors(Array< double > &DErrors_)
Get all Grad/Curl/Div errors.
double GetDGFaceJumpsError(int n)
Get the DGFaceJumps error at step n.
void GetL2Errors(Array< double > &L2Errors_)
Get all L2 errors.
Base class Coefficients that optionally depend on space and time. These are used by the BilinearFormI...
void Print(bool relative=false, std::ostream &out=mfem::out)
Print rates and errors.
Class to compute error and convergence rates. It supports H1, H(curl) (ND elements), H(div) (RT elements) and L2 (DG).
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...
void AddH1GridFunction(GridFunction *gf, Coefficient *scalar_u, VectorCoefficient *grad=nullptr)
Add H1 GridFunction, the exact solution and possibly its gradient.
double GetDError(int n)
Get the Grad/Curl/Div error at step n.