Commit 196296e5 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

boundary-manager traverse over leafgridview

parent 557efb43
...@@ -70,7 +70,7 @@ namespace AMDiS ...@@ -70,7 +70,7 @@ namespace AMDiS
/// Set boundary ids [left,right, front,back, bottom,top] for cube domains /// Set boundary ids [left,right, front,back, bottom,top] for cube domains
void setBoxBoundary(std::array<BoundaryType, 2*dow> const& ids) 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& e : elements(gv))
{ {
for (auto const& segment : intersections(gv,e)) { for (auto const& segment : intersections(gv,e)) {
...@@ -96,7 +96,7 @@ namespace AMDiS ...@@ -96,7 +96,7 @@ namespace AMDiS
REQUIRES(Concepts::Functor<Indicator, int(Domain)>) > REQUIRES(Concepts::Functor<Indicator, int(Domain)>) >
void setIndicator(Indicator const& indicator) void setIndicator(Indicator const& indicator)
{ {
auto gv = grid_->levelGridView(0); auto gv = grid_->leafGridView();
for (auto const& e : elements(gv)) for (auto const& e : elements(gv))
{ {
for (auto const& segment : intersections(gv,e)) { for (auto const& segment : intersections(gv,e)) {
...@@ -115,7 +115,7 @@ namespace AMDiS ...@@ -115,7 +115,7 @@ namespace AMDiS
REQUIRES(Concepts::Functor<Predicate, bool(Domain)>) > REQUIRES(Concepts::Functor<Predicate, bool(Domain)>) >
void setPredicate(Predicate const& pred, BoundaryType id) 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& e : elements(gv))
{ {
for (auto const& segment : intersections(gv,e)) { for (auto const& segment : intersections(gv,e)) {
...@@ -139,7 +139,7 @@ namespace AMDiS ...@@ -139,7 +139,7 @@ namespace AMDiS
if (!Dune::Std::is_detected<HasBoundaryId, Segment>::value) if (!Dune::Std::is_detected<HasBoundaryId, Segment>::value)
return; return;
auto gv = grid_->levelGridView(0); auto gv = grid_->leafGridView();
for (auto const& e : elements(gv)) for (auto const& e : elements(gv))
{ {
for (auto const& segment : intersections(gv,e)) { for (auto const& segment : intersections(gv,e)) {
......
Supports Markdown
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