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

See static method mark for details. More...

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

Static Public Member Functions

static void mark (RefinementIndicator< GridType > &refinementIndicator, GridType &grid, field_type fraction)
 
static void mark (const std::vector< std::shared_ptr< RefinementIndicator< GridType > > > &refinementIndicator, const std::vector< GridType * > &grids, field_type fraction)
 Sorts the elements of all grids according to the maximal error associated with any of its subentities and marks the top percentage of those (for refinement).
 

Detailed Description

template<class GridType, class field_type = double>
class FractionalMarkingStrategy< GridType, field_type >

See static method mark for details.

Member Function Documentation

◆ mark() [1/2]

template<class GridType , class field_type >
void FractionalMarkingStrategy< GridType, field_type >::mark ( const std::vector< std::shared_ptr< RefinementIndicator< GridType > > > &  refinementIndicator,
const std::vector< GridType * > &  grids,
field_type  fraction 
)
static

Sorts the elements of all grids according to the maximal error associated with any of its subentities and marks the top percentage of those (for refinement).

Parameters
refinementIndicatorFor each grid, the errors associated with its entities are provided here.
gridsA std::vector of grid pointers to consider.
fractionSpecifies the total number of elements to be refined in terms of percentage/100 of all elements of all grids.

◆ mark() [2/2]

template<class GridType , class field_type >
void FractionalMarkingStrategy< GridType, field_type >::mark ( RefinementIndicator< GridType > &  refinementIndicator,
GridType &  grid,
field_type  fraction 
)
static

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