Skip to content
Snippets Groups Projects

evaluate marker-function only on the barycenter of the element

Merged Praetorius, Simon requested to merge issue/marker_evaluation_strategy into master
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -284,11 +284,10 @@ Flag GridFunctionMarker<Grid, PreGridFct>::markGrid(AdaptInfo& adaptInfo)
int currentLevel = e.level();
auto geo = e.geometry();
auto const& ref = Dune::referenceElement(geo);
int targetLevel = 0;
int codim = ref.dimension;
for (int i = 0; i < ref.size(codim); i++)
targetLevel = std::max(targetLevel, int(std::round(localFct(ref.position(i, codim)))));
// evaluate in the center of the element
int targetLevel = int(std::round(localFct(ref.position(0,0))));
int m = ((((targetLevel > currentLevel) && (currentLevel < this->maxRefineLevel_))
|| (currentLevel < this->minRefineLevel_))
Loading