Commit 107b0aca authored by Müller, Felix's avatar Müller, Felix

Constructor of GridFunctionMarker no longer overwrites min/maxRef values given in the initfile

parent c6c69efe
Pipeline #1327 passed with stage
in 20 minutes and 7 seconds
......@@ -386,8 +386,11 @@ namespace AMDiS
: Super{name, grid}
, gridFct_{makeGridFunction(std::forward<GF>(gf), grid->leafGridView())}
{
this->maxRefineLevel_ = maxRef ? maxRef.value() : std::numeric_limits<int>::max();
this->minRefineLevel_ = minRef ? minRef.value() : 0;
this->maxRefineLevel_ = maxRef ? maxRef.value() :
(this->maxRefineLevel_ == -1 ? std::numeric_limits<int>::max() : this->maxRefineLevel_);
this->minRefineLevel_ = minRef ? minRef.value() :
(this->minRefineLevel_ == -1 ? 0 : this->minRefineLevel_);
}
/// \brief Implementation of \ref Marker::markElement. Does nothing since marking is
......
Markdown is supported
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