AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
MSMarker< Grid > Class Template Reference

Maximum strategy. More...

#include <Marker.hpp>

Inherits EstimatorMarker< Grid >.

Public Member Functions

 MSMarker (std::string const &name, std::string component, Estimates const &est, std::shared_ptr< Grid > const &grid)
 Constructor.
 
void initMarking (AdaptInfo &adaptInfo) override
 Can be used by sub classes. Called before traversal. More...
 
- Public Member Functions inherited from EstimatorMarker< Grid >
 EstimatorMarker ()=default
 Constructor.
 
 EstimatorMarker (std::string name, std::string component, Estimates const &est, std::shared_ptr< Grid > const &grid)
 Constructor.
 
void initMarking (AdaptInfo &adaptInfo) override
 Can be used by sub classes. Called before traversal. More...
 
void markElement (AdaptInfo &adaptInfo, Element const &elem) override
 Marks one element. More...
 
- Public Member Functions inherited from Marker< Grid >
 Marker ()=default
 Constructor.
 
 Marker (std::string const &name, std::shared_ptr< Grid > const &grid)
 Constructor.
 
virtual ~Marker ()=default
 Destructor.
 
void mark (Element const &elem, int newMark)
 
virtual void initMarking (AdaptInfo &adaptInfo)
 Called before traversal. More...
 
virtual void finishMarking (AdaptInfo &adaptInfo)
 Called after traversal.
 
virtual void markElement (AdaptInfo &adaptInfo, Element const &elem)=0
 Marks one element. More...
 
virtual Flag markGrid (AdaptInfo &adaptInfo)
 Marking of the whole grid. More...
 
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 Attributes

double msGamma_ = 0.5
 Marking parameter.
 
double msGammaC_ = 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::MSMarker< Grid >

Maximum strategy.

Member Function Documentation

◆ initMarking()

void initMarking ( AdaptInfo adaptInfo)
overridevirtual

Can be used by sub classes. Called before traversal.

Reimplemented from EstimatorMarker< Grid >.

References AdaptInfo::estMax().


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