Hermes2D  3.0
Hermes::Hermes2D::AdaptivityStoppingCriterion< Scalar > Class Template Referenceabstract

#include <adapt.h>

+ Inheritance diagram for Hermes::Hermes2D::AdaptivityStoppingCriterion< Scalar >:

Public Member Functions

virtual bool add_refinement (ErrorCalculator< Scalar > *error_calculator, double processed_error_squared, double max_error_squared, int element_inspected_i)=0

Detailed Description

template<typename Scalar>
class Hermes::Hermes2D::AdaptivityStoppingCriterion< Scalar >

Class for selecting the stopping criterion of the loop over all elements in an descending order wrt. their error.

Serves for only inspect such a portion of all elements of all meshes in the system for potential refinement.

Definition at line 49 of file adapt.h.

Member Function Documentation

template<typename Scalar>
virtual bool Hermes::Hermes2D::AdaptivityStoppingCriterion< Scalar >::add_refinement ( ErrorCalculator< Scalar > *  error_calculator,
double  processed_error_squared,
double  max_error_squared,
int  element_inspected_i 
pure virtual

Main AdaptivityStoppingCriterion method. It is evaluated in the loop over all elements in an descending order wrt. their error. The loop ends with the first negative result of a call to this method. Decide if the refinement at hand will be carried out.

Implemented in Hermes::Hermes2D::AdaptStoppingCriterionLevels< Scalar >, Hermes::Hermes2D::AdaptStoppingCriterionSingleElement< Scalar >, and Hermes::Hermes2D::AdaptStoppingCriterionCumulative< Scalar >.

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