diff --git a/src/amdis/Marker.inc.hpp b/src/amdis/Marker.inc.hpp index 9bd74e680d9fa44374bad0bf431f57cb5d5c131c..61bfee4647f5425aeb7cf10a8540b976a3264dcb 100644 --- a/src/amdis/Marker.inc.hpp +++ b/src/amdis/Marker.inc.hpp @@ -88,10 +88,10 @@ void EstimatorMarker<Grid>::markElement(AdaptInfo& adaptInfo, const Element& ele double lError = est_[index]; if (lError > markRLimit_ && this->refineAllowed_ - && (this->maxRefineLevel_ == -1 || elem.level() < this->maxRefineLevel_)) { + && elem.level() < this->maxRefineLevel_) { this->mark(elem, 1); } else if (lError <= markCLimit_ && this->coarsenAllowed_ - && (this->minRefineLevel_ == -1 || elem.level() > this->minRefineLevel_)) { + && elem.level() > this->minRefineLevel_) { this->mark(elem, -1); } }