12 #ifndef MFEM_CONVERGENCE
13 #define MFEM_CONVERGENCE
15 #include "../linalg/linalg.hpp"
80 AddGf(gf, scalar_u, grad, ell_coeff, Nu);
87 AddGf(gf, scalar_u, grad);
94 AddGf(gf, vector_u, curl,
nullptr);
101 AddGf(gf,vector_u,
nullptr, div);
107 MFEM_VERIFY( n <= counter,
"Step out of bounds")
114 L2Errors_ = L2Errors;
120 MFEM_VERIFY(n <= dcounter,
"Step out of bounds")
133 MFEM_VERIFY(n<= fcounter,
"Step out of bounds")
134 return DGFaceErrors[n];
140 DGFaceErrors_ = DGFaceErrors;
149 #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 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.
void AddL2GridFunction(GridFunction *gf, Coefficient *scalar_u, VectorCoefficient *grad=nullptr, Coefficient *ell_coeff=nullptr, double Nu=1.0)
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.