diff --git a/dumux/implicit/adaptive/gridadapt.hh b/dumux/implicit/adaptive/gridadapt.hh index 8dca1c52f50df12b5bb01a7c5baf9c1967435e5e..015369d71731d6ed1a5ecda031f4fb5942c6d83b 100644 --- a/dumux/implicit/adaptive/gridadapt.hh +++ b/dumux/implicit/adaptive/gridadapt.hh @@ -147,14 +147,6 @@ public: /*! * @brief Returns true if grid cells have been marked for adaption */ - bool wasAdapted() - { - int sumMarked = problem_.grid().comm().sum(marked_); - int sumCoarsened = problem_.grid().comm().sum(coarsened_); - - return (sumMarked != 0 || sumCoarsened != 0); - } - bool wasAdapted() const { int sumMarked = problem_.grid().comm().sum(marked_); @@ -438,10 +430,8 @@ public: {} void adaptGrid() {} - bool wasAdapted() - { - return false; - } + bool wasAdapted() const + { return false; } void setLevels(int, int) {} void setTolerance(int, int)