From c78a40fe1b9f274f039d33e2a4172aa08ae98bcb Mon Sep 17 00:00:00 2001
From: "Dennis.Glaeser" <dennis.glaeser@iws.uni-stuttgart.de>
Date: Thu, 12 Mar 2020 16:20:04 +0100
Subject: [PATCH] [test][md][richards] Use new multidomain glue

---
 .../embedded/1d3d/1p2c_richards2c/main.cc            | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/test/multidomain/embedded/1d3d/1p2c_richards2c/main.cc b/test/multidomain/embedded/1d3d/1p2c_richards2c/main.cc
index a97cbe2aa3..ad62d28fd7 100644
--- a/test/multidomain/embedded/1d3d/1p2c_richards2c/main.cc
+++ b/test/multidomain/embedded/1d3d/1p2c_richards2c/main.cc
@@ -46,7 +46,7 @@
 #include <dumux/multidomain/fvassembler.hh>
 #include <dumux/multidomain/newtonsolver.hh>
 #include <dumux/multidomain/embedded/couplingmanager1d3d.hh>
-#include <dumux/multidomain/embedded/mixeddimensionglue.hh>
+#include <dumux/multidomain/glue.hh>
 
 #include "problem_root.hh"
 #include "problem_soil.hh"
@@ -242,18 +242,14 @@ int main(int argc, char** argv) try
     for (int i = 0; i < levels; ++i)
     {
         auto& soilGrid = bulkGridManager.grid();
-        using BulkGridView = GetPropType<BulkTypeTag, Properties::GridView>;
-        using LowDimGridView = GetPropType<LowDimTypeTag, Properties::GridView>;
-
-        MixedDimensionGlue<BulkGridView, LowDimGridView>
-            glue(bulkFvGridGeometry->boundingBoxTree(), lowDimFvGridGeometry->boundingBoxTree());
+        const auto glue = makeGlue(*lowDimFvGridGeometry, *bulkFvGridGeometry);
 
         // refine all 3D cells intersected
         for (const auto& is : intersections(glue))
         {
-            for (unsigned int outsideIdx = 0; outsideIdx < is.neighbor(0); ++outsideIdx)
+            for (unsigned int targetIdx = 0; targetIdx < is.numTargetNeighbors(); ++targetIdx)
             {
-                const auto cutElement = is.outside(outsideIdx);
+                const auto cutElement = is.targetEntity(targetIdx);
 
                 // mark the cut element and all it's neighbors
                 soilGrid.mark(1, cutElement);
-- 
GitLab