diff --git a/src/amdis/BoundaryManager.hpp b/src/amdis/BoundaryManager.hpp index a43e28d1f0c9fb11057512480fb4562e79ca0c49..c1f17acb7b687c37010a08c18df7fdf1f9fbdf6c 100644 --- a/src/amdis/BoundaryManager.hpp +++ b/src/amdis/BoundaryManager.hpp @@ -70,7 +70,7 @@ namespace AMDiS /// Set boundary ids [left,right, front,back, bottom,top] for cube domains void setBoxBoundary(std::array<BoundaryType, 2*dow> const& ids) { - auto gv = grid_->levelGridView(0); + auto gv = grid_->leafGridView(); for (auto const& e : elements(gv)) { for (auto const& segment : intersections(gv,e)) { @@ -96,7 +96,7 @@ namespace AMDiS REQUIRES(Concepts::Functor<Indicator, int(Domain)>) > void setIndicator(Indicator const& indicator) { - auto gv = grid_->levelGridView(0); + auto gv = grid_->leafGridView(); for (auto const& e : elements(gv)) { for (auto const& segment : intersections(gv,e)) { @@ -115,7 +115,7 @@ namespace AMDiS REQUIRES(Concepts::Functor<Predicate, bool(Domain)>) > void setPredicate(Predicate const& pred, BoundaryType id) { - auto gv = grid_->levelGridView(0); + auto gv = grid_->leafGridView(); for (auto const& e : elements(gv)) { for (auto const& segment : intersections(gv,e)) { @@ -139,7 +139,7 @@ namespace AMDiS if (!Dune::Std::is_detected<HasBoundaryId, Segment>::value) return; - auto gv = grid_->levelGridView(0); + auto gv = grid_->leafGridView(); for (auto const& e : elements(gv)) { for (auto const& segment : intersections(gv,e)) {