Skip to content
Snippets Groups Projects
Commit 47580816 authored by Timo Koch's avatar Timo Koch
Browse files

[gridadapt] Const correctness for wasAdapted method

parent 3fd6dcd3
No related branches found
No related tags found
Loading
...@@ -147,14 +147,6 @@ public: ...@@ -147,14 +147,6 @@ public:
/*! /*!
* @brief Returns true if grid cells have been marked for adaption * @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 bool wasAdapted() const
{ {
int sumMarked = problem_.grid().comm().sum(marked_); int sumMarked = problem_.grid().comm().sum(marked_);
...@@ -438,10 +430,8 @@ public: ...@@ -438,10 +430,8 @@ public:
{} {}
void adaptGrid() void adaptGrid()
{} {}
bool wasAdapted() bool wasAdapted() const
{ { return false; }
return false;
}
void setLevels(int, int) void setLevels(int, int)
{} {}
void setTolerance(int, int) void setTolerance(int, int)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment