42 const double solver_tol = 1e-12;
43 const int solver_max_it = 200;
51 #endif // MFEM_USE_MPI
55 MFEM_VERIFY(
coef != NULL ||
vcoef != NULL,
56 "LpErrorEstimator has no coefficient! Call SetCoef first.");
Class for grid function - Vector with associated FE space.
virtual void Update(bool want_transform=true)
Reflect changes in the mesh: update number of DOFs, etc. Also, calculate GridFunction transformation ...
void ComputeEstimates()
Compute the element error estimates.
virtual void ComputeElementLpErrors(const double p, Coefficient &exsol, Vector &error, Coefficient *weight=NULL, const IntegrationRule *irs[]=NULL) const
ParFiniteElementSpace * flux_space
Ownership based on the flag own_flux_fes. Its Update() method is called automatically by this class w...
void SetSize(int s)
Resize the vector to size s.
VectorCoefficient * vcoef
virtual void Update(bool want_transform=true)
int GetNE() const
Returns number of elements.
void ComputeEstimates()
Compute the element error estimates.
ParGridFunction * solution
Not owned.
Mesh * GetMesh() const
Returns the mesh.
GridFunction * solution
Not owned.
int local_norm_p
Local L_p norm to use, default is 1.
FiniteElementSpace * FESpace()
void SetSize(int nsize)
Change the logical size of the array, keep existing entries.
double L2ZZErrorEstimator(BilinearFormIntegrator &flux_integrator, const ParGridFunction &x, ParFiniteElementSpace &smooth_flux_fes, ParFiniteElementSpace &flux_fes, Vector &errors, int norm_p, double solver_tol, int solver_max_it)
ParFiniteElementSpace * smooth_flux_space
Ownership based on the flag own_flux_fes. Its Update() method is called automatically by this class w...
double ZZErrorEstimator(BilinearFormIntegrator &blfi, GridFunction &u, GridFunction &flux, Vector &error_estimates, Array< int > *aniso_flags, int with_subdomains, bool with_coeff)
FiniteElementSpace * flux_space
Ownership based on own_flux_fes. Its Update() method is called automatically by this class when neede...
BilinearFormIntegrator * integ
Not owned.
void ComputeEstimates()
Compute the element error estimates.
BilinearFormIntegrator * integ
Not owned.