Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
RefinementIndicator< GridType > Class Template Reference

Holds refinement indicators for a hierarchical grid. More...

#include <dune/fufem/estimators/refinementindicator.hh>

Public Member Functions

 RefinementIndicator (const GridType &grid)
 Set up the indicator for a given grid.
 
void clear ()
 Erase all entries.
 
void set (const Element &element, unsigned int codim, unsigned int subEntity, const field_type)
 Set indicator associated with a subentity of an element.
 
field_type value (const Element &element, unsigned int codim, unsigned int subEntity) const
 Get indicator associated with a subentity of an element.
 

Detailed Description

template<class GridType>
class RefinementIndicator< GridType >

Holds refinement indicators for a hierarchical grid.

Refinement indicators are produced by error estimators, and they are used by marking strategies to mark grid elements for refinement and coarsening. Error indicators are sets of number, each of which is associated to an entity of the grid.

Constructor & Destructor Documentation

◆ RefinementIndicator()

template<class GridType >
RefinementIndicator< GridType >::RefinementIndicator ( const GridType &  grid)
inline

Set up the indicator for a given grid.

Member Function Documentation

◆ clear()

template<class GridType >
void RefinementIndicator< GridType >::clear ( )
inline

Erase all entries.

◆ set()

template<class GridType >
void RefinementIndicator< GridType >::set ( const Element &  element,
unsigned int  codim,
unsigned int  subEntity,
const field_type  value 
)

Set indicator associated with a subentity of an element.

◆ value()

template<class GridType >
RefinementIndicator< GridType >::field_type RefinementIndicator< GridType >::value ( const Element &  element,
unsigned int  codim,
unsigned int  subEntity 
) const

Get indicator associated with a subentity of an element.

Returns
Zero, if no indicator is associated with the requested subentity

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