Commit 4153ca0a authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

add changeIndex to track grid changes

parent 4fddde92
Pipeline #1644 passed with stage
in 25 minutes and 19 seconds
...@@ -81,6 +81,13 @@ namespace AMDiS ...@@ -81,6 +81,13 @@ namespace AMDiS
vec->postAdapt(refined_); vec->postAdapt(refined_);
} }
grid_->postAdapt(); grid_->postAdapt();
changeIndex_++;
}
/// Returns the grid change index, see \ref changeIndex.
unsigned long changeIndex() const
{
return changeIndex_;
} }
private: private:
...@@ -88,6 +95,10 @@ namespace AMDiS ...@@ -88,6 +95,10 @@ namespace AMDiS
std::list<DOFVectorInterface*> data_; std::list<DOFVectorInterface*> data_;
bool mightCoarsen_ = false; bool mightCoarsen_ = false;
bool refined_ = false; bool refined_ = false;
/// This index is incremented every time the grid is changed, e.g. by
/// refinement or coarsening.
unsigned long changeIndex_ = 0;
}; };
} // end namespace AMDiS } // end namespace AMDiS
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