From 9e011ea8454c44b67b56bba48ff24e0c286feca1 Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@math.fu-berlin.de>
Date: Mon, 19 Feb 2018 11:05:20 +0100
Subject: [PATCH] Use correct coordinate type

---
 dune/subgrid/subgrid/subgridindexstorage.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dune/subgrid/subgrid/subgridindexstorage.hh b/dune/subgrid/subgrid/subgridindexstorage.hh
index 4fa95fb..a63387e 100644
--- a/dune/subgrid/subgrid/subgridindexstorage.hh
+++ b/dune/subgrid/subgrid/subgridindexstorage.hh
@@ -73,6 +73,7 @@ class SubGridIndexStorageBase
     template <class GridImp_, int EntityDim>
     friend class SubGridMapSubindexSetter;
 
+        using ctype = typename GridType::ctype;
 
     public:
 
@@ -209,7 +210,7 @@ class SubGridIndexStorageBase
         template <int cc>
         GeometryType getSubGeometryType(const typename std::remove_const<GridType>::type::template Codim<cc>::Entity& e, int i, unsigned int codim) const
         {
-            return Dune::ReferenceElements<double,dim>::general(e.type()).type(i,codim);
+            return Dune::ReferenceElements<ctype,dim>::general(e.type()).type(i,codim);
         }
 
 
-- 
GitLab