Hermes2D  3.0
Hermes::Hermes2D::AdaptStoppingCriterionCumulative< Scalar > Class Template Reference

#include <adapt.h>

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

Public Member Functions

 AdaptStoppingCriterionCumulative (double threshold)
 Constructor specifying the threshold (see description of threshold).
 
bool add_refinement (ErrorCalculator< Scalar > *error_calculator, double processed_error_squared, double max_error_squared, int element_inspected_i)
 

Detailed Description

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

Stopping criterion based on cumulative processed error. The method add_refinement will return false as soon as the already processed refinements counted for AdaptStoppingCriterionCumulative::threshold of the total error.

Definition at line 62 of file adapt.h.

Member Function Documentation

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

Decide if the refinement at hand will be carried out. Will return false as soon as the already processed refinements counted for AdaptStoppingCriterionCumulative::threshold of the total error.

Implements Hermes::Hermes2D::AdaptivityStoppingCriterion< Scalar >.

Definition at line 31 of file adapt.cpp.


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