From 6ee94cecdca91f4a8b8ea9a08f98b82f50e23141 Mon Sep 17 00:00:00 2001
From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de>
Date: Thu, 1 Feb 2018 15:02:49 +0100
Subject: [PATCH] [mpfa][properties] minor rearrangements

---
 .../cellcentered/mpfa/properties.hh           | 27 ++++++++-----------
 1 file changed, 11 insertions(+), 16 deletions(-)

diff --git a/dumux/discretization/cellcentered/mpfa/properties.hh b/dumux/discretization/cellcentered/mpfa/properties.hh
index 57b4114888..53a04d86cd 100644
--- a/dumux/discretization/cellcentered/mpfa/properties.hh
+++ b/dumux/discretization/cellcentered/mpfa/properties.hh
@@ -106,7 +106,7 @@ public:
     using type = typename GET_PROP_TYPE(TypeTag, SecondaryInteractionVolume);
 };
 
-//! Per default, we use the mpfa-o interaction volume as secondary type
+//! Per default, we use the dynamic mpfa-o interaction volume on boundaries
 SET_PROP(CCMpfaModel, SecondaryInteractionVolume)
 {
 private:
@@ -127,32 +127,27 @@ private:
     using PrimaryIV = typename GET_PROP_TYPE(TypeTag, PrimaryInteractionVolume);
     using SecondaryIV = typename GET_PROP_TYPE(TypeTag, SecondaryInteractionVolume);
 
-    static constexpr bool enableCache = GET_PROP_VALUE(TypeTag, EnableFVGridGeometryCache);
-
     struct Traits : public DefaultMapperTraits<GridView>
     {
         using SubControlVolume = CCSubControlVolume<GridView>;
         using SubControlVolumeFace = CCMpfaSubControlVolumeFace<GridView>;
         using NodalIndexSet = typename GET_PROP_TYPE(TypeTag, DualGridNodalIndexSet);
 
-        template< class FVGridGeometry >
-        using GridIvIndexSets = CCMpfaGridInteractionVolumeIndexSets< FVGridGeometry,
-                                                                      NodalIndexSet,
-                                                                      PrimaryIV,
-                                                                      SecondaryIV >;
+        //! type definitions depending on the FVGridGeometry itself
+        template< class FVGridGeom >
+        using MpfaHelper = CCMpfaHelper< FVGridGeom >;
 
-        template< class FVGridGeometry, bool enableGeomCache >
-        using LocalView = CCMpfaFVElementGeometry<FVGridGeometry, enableGeomCache>;
+        template< class FVGridGeom >
+        using ConnectivityMap = CCMpfaConnectivityMap<FVGridGeom, FVGridGeom::GridIVIndexSets::PrimaryInteractionVolume::MpfaMethod>;
 
-        template< class FVGridGeometry >
-        using MpfaHelper = CCMpfaHelper< FVGridGeometry >;
+        template< class FVGridGeom >
+        using GridIvIndexSets = CCMpfaGridInteractionVolumeIndexSets< FVGridGeom, NodalIndexSet, PrimaryIV, SecondaryIV >;
 
-        //! Use the correct connectivity map depending on mpfa scheme (obtain from primary iv)
-        template< class FVGridGeometry >
-        using ConnectivityMap = CCMpfaConnectivityMap<FVGridGeometry, FVGridGeometry::GridIVIndexSets::PrimaryInteractionVolume::MpfaMethod>;
+        template< class FVGridGeom, bool enableCache >
+        using LocalView = CCMpfaFVElementGeometry<FVGridGeom, enableCache>;
     };
 public:
-    using type = CCMpfaFVGridGeometry<GridView, Traits, enableCache>;
+    using type = CCMpfaFVGridGeometry<GridView, Traits, GET_PROP_VALUE(TypeTag, EnableFVGridGeometryCache)>;
 };
 
 //! The global flux variables cache vector class
-- 
GitLab