AMDiS  0.1
The Adaptive Multi-Dimensional Simulation Toolbox
GERSMarker< Grid > Class Template Reference

Guaranteed error reduction strategy. More...

#include <Marker.hpp>

Inherits EstimatorMarker< Grid >.

Public Member Functions

 GERSMarker (std::string const &name, std::string component, Estimates const &est, std::shared_ptr< Grid > const &grid)
Flag markGrid (AdaptInfo &adaptInfo) override
 Marking of the whole grid.
- Public Member Functions inherited from EstimatorMarker< Grid >
 EstimatorMarker ()=default
 EstimatorMarker (std::string name, std::string component, Estimates const &est, std::shared_ptr< Grid > const &grid)
void initMarking (AdaptInfo &adaptInfo) override
 Can be used by sub classes. Called before traversal.
void markElement (AdaptInfo &adaptInfo, Element const &elem) override
 Marks one element.
- Public Member Functions inherited from Marker< Grid >
 Marker ()=default
 Marker (std::string const &name, std::shared_ptr< Grid > const &grid)
virtual ~Marker ()=default
void mark (Element const &elem, int newMark)
virtual void finishMarking (AdaptInfo &adaptInfo)
 Called after traversal.
int elMarkRefine () const
 Returns elMarkRefine_ of the Marker.
int elMarkCoarsen () const
 Returns elMarkCoarsen_ of the Marker.
std::string const & name () const
 Returns name_ of the Marker.
void setMaximumMarking (bool maxMark)
 Sets maximumMarking_.
void allowRefinement (bool allow)
 Sets refineAllowed_.
void allowCoarsening (bool allow)
 Sets coarsenAllowed_.

Protected Member Functions

void markElementForRefinement (AdaptInfo &adaptInfo, Element const &elem)
 Refinement marking function.
void markElementForCoarsening (AdaptInfo &adaptInfo, Element const &elem)
 Coarsening marking function.

Protected Attributes

double gersSum_ = 0.0
 Marking parameter.
double oldErrSum_ = 0.0
 Marking parameter.
double gersThetaStar_ = 0.6
 Marking parameter.
double gersNu_ = 0.1
 Marking parameter.
double gersThetaC_ = 0.1
 Marking parameter.
- Protected Attributes inherited from EstimatorMarker< Grid >
std::string component_
 Problem component to work on.
Estimates est_
 Pointer to the local error estimates.
double estSum_ = 0.0
 Estimation sum.
double estMax_ = 0.0
 Estmation maximum.
double markRLimit_
double markCLimit_
double p_ = 2.0
 Power in estimator norm.
- Protected Attributes inherited from Marker< Grid >
std::string name_
 Name of the marker.
std::shared_ptr< Grid > grid_
 Pointer to the grid.
bool maximumMarking_ = false
int info_ = 0
 Info level.
int elMarkRefine_ = 0
 Counter for elements marked for refinement.
int elMarkCoarsen_ = 0
 Counter for elements marked for coarsening.
int maxRefineLevel_ = std::numeric_limits<int>::max()
 Maximal level of all elements.
int minRefineLevel_ = 0
 Minimal level of all elements.
bool refineAllowed_ = true
 Allow elements to be marked for refinement.
bool coarsenAllowed_ = true
 Allow elements to be marked for coarsening.

Additional Inherited Members

- Static Public Member Functions inherited from EstimatorMarker< Grid >
static std::unique_ptr< EstimatorMarker< Grid > > createMarker (std::string const &name, std::string const &component, Estimates const &est, std::shared_ptr< Grid > const &grid)
 Creates a scalar marker depending on the strategy set in parameters.
- Protected Types inherited from EstimatorMarker< Grid >
using Super = Marker< Grid >
using Element = typename Super::Element
using Estimates = std::vector< double >
- Protected Types inherited from Marker< Grid >
using GridView = typename Grid::LeafGridView
using Element = typename GridView::template Codim< 0 >::Entity

Detailed Description

template<class Grid>
class AMDiS::GERSMarker< Grid >

Guaranteed error reduction strategy.

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