From 962b60ac432d441cba33aeeeca3e3c550dc3fbd8 Mon Sep 17 00:00:00 2001
From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de>
Date: Fri, 3 Feb 2017 17:55:16 +0100
Subject: [PATCH] [mpfa-l][globaliavolseeds] simplyfy isLocalMaxLevel() method

---
 .../mpfa/lmethod/globalinteractionvolumeseeds.hh           | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dumux/discretization/cellcentered/mpfa/lmethod/globalinteractionvolumeseeds.hh b/dumux/discretization/cellcentered/mpfa/lmethod/globalinteractionvolumeseeds.hh
index 8a3da8af4f..d9fe0f67c7 100644
--- a/dumux/discretization/cellcentered/mpfa/lmethod/globalinteractionvolumeseeds.hh
+++ b/dumux/discretization/cellcentered/mpfa/lmethod/globalinteractionvolumeseeds.hh
@@ -141,12 +141,7 @@ public:
     }
 
     bool isLocalMaxLevel_(const Element& element, const SubControlVolumeFace& scvf) const
-    {
-        auto inLevel = element.level();
-        if (this->problem().model().globalFvGeometry().element(scvf.outsideScvIdx()).level() > inLevel)
-            return false;
-        return true;
-    }
+    { return this->problem().model().globalFvGeometry().element(scvf.outsideScvIdx()).level() <= element.level(); }
 };
 
 } // end namespace
-- 
GitLab