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

---
 dumux/discretization/cellcentered/tpfa/fvelementgeometry.hh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dumux/discretization/cellcentered/tpfa/fvelementgeometry.hh b/dumux/discretization/cellcentered/tpfa/fvelementgeometry.hh
index 8a9335603f..d004be7988 100644
--- a/dumux/discretization/cellcentered/tpfa/fvelementgeometry.hh
+++ b/dumux/discretization/cellcentered/tpfa/fvelementgeometry.hh
@@ -61,9 +61,10 @@ class CCTpfaFVElementGeometry<GG, true>
     using ThisType = CCTpfaFVElementGeometry<GG, true>;
     using GridView = typename GG::GridView;
     using GridIndexType = typename IndexTraits<GridView>::GridIndex;
-    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
@@ -181,12 +182,13 @@ class CCTpfaFVElementGeometry<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;
 
     static const int dim = GridView::dimension;
     static const int dimWorld = GridView::dimensionworld;
 
 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