From 475808162c40808fddfe2fd33ada9ba24bbc4ec9 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Mon, 27 Feb 2017 13:42:05 +0100 Subject: [PATCH] [gridadapt] Const correctness for wasAdapted method --- dumux/implicit/adaptive/gridadapt.hh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dumux/implicit/adaptive/gridadapt.hh b/dumux/implicit/adaptive/gridadapt.hh index 8dca1c52f5..015369d717 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) -- GitLab