Commit d68cbeaf authored by Praetorius, Simon's avatar Praetorius, Simon

Merge branch 'feature/grid_adaption_counter' into 'develop'

add changeIndex to track grid changes

See merge request !76
parents fa6bdcc0 4153ca0a
Pipeline #1675 passed with stage
in 46 minutes and 37 seconds
......@@ -81,6 +81,13 @@ namespace AMDiS
vec->postAdapt(refined_);
}
grid_->postAdapt();
changeIndex_++;
}
/// Returns the grid change index, see \ref changeIndex.
unsigned long changeIndex() const
{
return changeIndex_;
}
private:
......@@ -88,6 +95,10 @@ namespace AMDiS
std::list<DOFVectorInterface*> data_;
bool mightCoarsen_ = 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
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