Commit cedad8e3 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Replace the LeafMultipleCodimMultipleGeomTypeMapper by the MCMGMapper

parent 0fb869e3
......@@ -132,7 +132,7 @@ namespace AMDiS
PersistentContainer persistentContainer_;
/// Map leaf entities to unique index
using Mapper = Dune::LeafMultipleCodimMultipleGeomTypeMapper<Grid>;
using Mapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
Mapper mapper_;
/// Data transfer on a single basis node
......
......@@ -45,7 +45,7 @@ struct CoordHasher
template <class C, class B>
DataTransfer<C,B>::DataTransfer(std::shared_ptr<B const> basis)
: basis_(std::move(basis))
, mapper_(basis_->gridView().grid(), Dune::mcmgElementLayout())
, mapper_(basis_->gridView(), Dune::mcmgElementLayout())
, nodeDataTransfer_()
{}
......@@ -162,7 +162,7 @@ void DataTransfer<C,B>::adapt(C& coeff)
nodeDataTransfer_[tp].adaptInit(lv, coeff, node);
});
mapper_.update();
mapper_.update(gv);
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