From 3aefa7cce91a00b838bcb535a522f5ee6251261e Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 12 Jun 2018 18:46:46 +0200
Subject: [PATCH] [common] Increase flexibility of default mapper traits

---
 dumux/common/defaultmappertraits.hh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dumux/common/defaultmappertraits.hh b/dumux/common/defaultmappertraits.hh
index 5c485118a4..944ff031a3 100644
--- a/dumux/common/defaultmappertraits.hh
+++ b/dumux/common/defaultmappertraits.hh
@@ -28,11 +28,13 @@
 
 namespace Dumux {
 
-template <class GridView>
+template <class GridView,
+          class EM = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>,
+          class VM = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>>
 struct DefaultMapperTraits
 {
-    using ElementMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
-    using VertexMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
+    using ElementMapper = EM;
+    using VertexMapper = VM;
 };
 
 } // namespace Dumux
-- 
GitLab