Skip to content
Snippets Groups Projects
Commit c27b2e73 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

max and min refinement level initialized in base class only

parent 11938c90
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment