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

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

diff --git a/dumux/discretization/box/fvelementgeometry.hh b/dumux/discretization/box/fvelementgeometry.hh
index cb4db85606..9ca3a412bf 100644
--- a/dumux/discretization/box/fvelementgeometry.hh
+++ b/dumux/discretization/box/fvelementgeometry.hh
@@ -56,11 +56,12 @@ class BoxFVElementGeometry<GG, true>
     static constexpr int dimWorld = GridView::dimensionworld;
     using GridIndexType = typename IndexTraits<GridView>::GridIndex;
     using LocalIndexType = typename IndexTraits<GridView>::LocalIndex;
-    using Element = typename GridView::template Codim<0>::Entity;
     using CoordScalar = typename GridView::ctype;
     using FeLocalBasis = typename GG::FeCache::FiniteElementType::Traits::LocalBasisType;
     using ReferenceElements = typename Dune::ReferenceElements<CoordScalar, dim>;
 public:
+    //! export the element type
+    using Element = typename GridView::template Codim<0>::Entity;
     //! export type of subcontrol volume
     using SubControlVolume = typename GG::SubControlVolume;
     //! export type of subcontrol volume face
@@ -171,7 +172,6 @@ class BoxFVElementGeometry<GG, false>
     static constexpr int dimWorld = GridView::dimensionworld;
     using GridIndexType = typename IndexTraits<GridView>::GridIndex;
     using LocalIndexType = typename IndexTraits<GridView>::LocalIndex;
-    using Element = typename GridView::template Codim<0>::Entity;
     using CoordScalar = typename GridView::ctype;
     using FeLocalBasis = typename GG::FeCache::FiniteElementType::Traits::LocalBasisType;
     using ReferenceElements = typename Dune::ReferenceElements<CoordScalar, dim>;
@@ -180,6 +180,8 @@ class BoxFVElementGeometry<GG, false>
                                              typename GG::SubControlVolume,
                                              typename GG::SubControlVolumeFace>;
 public:
+    //! export the element type
+    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