From dca5fc24d02d2e88348f2ef5878ed53d4ab5eb44 Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Thu, 22 Mar 2018 21:07:59 +0100
Subject: [PATCH] [rans] Only consider walls at global boundaries

---
 dumux/freeflow/rans/problem.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dumux/freeflow/rans/problem.hh b/dumux/freeflow/rans/problem.hh
index 02d7a597b1..4a16c81fc1 100644
--- a/dumux/freeflow/rans/problem.hh
+++ b/dumux/freeflow/rans/problem.hh
@@ -112,6 +112,10 @@ public:
         {
             for (const auto& intersection : intersections(gridView, element))
             {
+                // only search for walls at a global boundary
+                if (!intersection.boundary())
+                    continue;
+
                 GlobalPosition global = intersection.geometry().center();
                 if (asImp_().isOnWall(global))
                 {
-- 
GitLab