Skip to content
Snippets Groups Projects
Commit 00bc4a00 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/bondary_manager_gridview' into 'master'

boundary-manager traverse over leafgridview

See merge request !21
parents 6887ffb9 196296e5
No related branches found
No related tags found
1 merge request!21boundary-manager traverse over leafgridview
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment