MFEM  v4.3.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::ErrorEstimator Class Referenceabstract

Base class for all element based error estimators. More...

#include <estimators.hpp>

Inheritance diagram for mfem::ErrorEstimator:
[legend]
Collaboration diagram for mfem::ErrorEstimator:
[legend]

Public Member Functions

virtual double GetTotalError () const
 Return the total error from the last error estimate. More...
 
virtual const VectorGetLocalErrors ()=0
 Get a Vector with all element errors. More...
 
virtual void Reset ()=0
 Force recomputation of the estimates on the next call to GetLocalErrors. More...
 
virtual ~ErrorEstimator ()
 Destruct the error estimator. More...
 
- Public Member Functions inherited from mfem::AbstractErrorEstimator
virtual ~AbstractErrorEstimator ()
 

Detailed Description

Base class for all element based error estimators.

At a minimum, an ErrorEstimator must be able compute one non-negative real (double) number for each element in the Mesh.

Definition at line 41 of file estimators.hpp.

Constructor & Destructor Documentation

virtual mfem::ErrorEstimator::~ErrorEstimator ( )
inlinevirtual

Destruct the error estimator.

Definition at line 56 of file estimators.hpp.

Member Function Documentation

virtual const Vector& mfem::ErrorEstimator::GetLocalErrors ( )
pure virtual
virtual double mfem::ErrorEstimator::GetTotalError ( ) const
inlinevirtual

Return the total error from the last error estimate.

Note
This method is optional for derived classes to override and the base class implementation simply returns 0.

Reimplemented in mfem::KellyErrorEstimator, mfem::L2ZienkiewiczZhuEstimator, and mfem::ZienkiewiczZhuEstimator.

Definition at line 47 of file estimators.hpp.

virtual void mfem::ErrorEstimator::Reset ( )
pure virtual

Force recomputation of the estimates on the next call to GetLocalErrors.

Implemented in mfem::KellyErrorEstimator, mfem::LpErrorEstimator, mfem::L2ZienkiewiczZhuEstimator, and mfem::ZienkiewiczZhuEstimator.


The documentation for this class was generated from the following file: