Commit 1e008c75 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Version dependent call to update

parent cedad8e3
......@@ -13,6 +13,7 @@
#include <dune/common/fvector.hh>
#include <dune/common/hash.hh>
#include <dune/common/version.hh>
#include <dune/grid/common/geometry.hh>
#include <dune/grid/common/rangegenerators.hh>
......@@ -162,7 +163,12 @@ void DataTransfer<C,B>::adapt(C& coeff)
nodeDataTransfer_[tp].adaptInit(lv, coeff, node);
});
#if DUNE_VERSION_LT(DUNE_GRID,2,8)
mapper_.update();
#else
mapper_.update(gv);
#endif
std::vector<bool> finished(mapper_.size(), false);
for (const auto& e : elements(gv, typename C::Traits::PartitionSet{}))
{
......
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