Commit c27b2e73 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

max and min refinement level initialized in base class only

parent 11938c90
...@@ -88,10 +88,10 @@ void EstimatorMarker<Grid>::markElement(AdaptInfo& adaptInfo, const Element& ele ...@@ -88,10 +88,10 @@ void EstimatorMarker<Grid>::markElement(AdaptInfo& adaptInfo, const Element& ele
double lError = est_[index]; double lError = est_[index];
if (lError > markRLimit_ && this->refineAllowed_ if (lError > markRLimit_ && this->refineAllowed_
&& (this->maxRefineLevel_ == -1 || elem.level() < this->maxRefineLevel_)) { && elem.level() < this->maxRefineLevel_) {
this->mark(elem, 1); this->mark(elem, 1);
} else if (lError <= markCLimit_ && this->coarsenAllowed_ } else if (lError <= markCLimit_ && this->coarsenAllowed_
&& (this->minRefineLevel_ == -1 || elem.level() > this->minRefineLevel_)) { && elem.level() > this->minRefineLevel_) {
this->mark(elem, -1); this->mark(elem, -1);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment