From 532a33ab13ec93e57078aa205285f3725f1c46a9 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 19 May 2020 11:12:15 +0200
Subject: [PATCH] [staggered] Export element type in FV element geometry

---
 dumux/discretization/staggered/fvelementgeometry.hh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dumux/discretization/staggered/fvelementgeometry.hh b/dumux/discretization/staggered/fvelementgeometry.hh
index ed0156e618..e23f7f0471 100644
--- a/dumux/discretization/staggered/fvelementgeometry.hh
+++ b/dumux/discretization/staggered/fvelementgeometry.hh
@@ -57,6 +57,8 @@ class StaggeredFVElementGeometry<GG, true> : public CCTpfaFVElementGeometry<GG,
     using GridIndexType = typename IndexTraits<GridView>::GridIndex;
     using LocalIndexType = typename IndexTraits<GridView>::LocalIndex;
 public:
+    //! export type of the element
+    using Element = typename GridView::template Codim<0>::Entity;
     //! export type of subcontrol volume face
     using SubControlVolumeFace = typename GG::SubControlVolumeFace;
 
@@ -91,8 +93,9 @@ class StaggeredFVElementGeometry<GG, false>
     using GridView = typename GG::GridView;
     using GridIndexType = typename IndexTraits<GridView>::GridIndex;
     using LocalIndexType = typename IndexTraits<GridView>::LocalIndex;
-    using Element = typename GridView::template Codim<0>::Entity;
 public:
+    //! export type of the element
+    using Element = typename GridView::template Codim<0>::Entity;
     //! export type of subcontrol volume
     using SubControlVolume = typename GG::SubControlVolume;
     //! export type of subcontrol volume face
-- 
GitLab