Skip to content
Snippets Groups Projects
Commit 898c5d91 authored by Max Kahnt's avatar Max Kahnt
Browse files

Add method description for fractional marking.

parent 73caa809
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@
#include <dune/fufem/estimators/refinementindicator.hh>
//! \brief See static method @mark for details.
template <class GridType, class field_type = double>
class FractionalMarkingStrategy
{
......@@ -40,6 +41,17 @@ public:
const std::vector<GridType*>& grids,
field_type fraction);
/**
* \brief 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).
* \param refinementIndicator For each grid, the errors associated with its
* entities are provided here.
* \param fraction Specifies the total number of elements to be refined in
* terms of percentage/100 of all elements of all grids.
*/
// TODO: IMHO the implementation does not provide a mechanism that prevents
// refining elements where all associated errors are zero.
static void mark(const std::vector<std::shared_ptr<RefinementIndicator<GridType> > >& refinementIndicator,
const std::vector<GridType*>& grids,
field_type fraction);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment