From cc59c9c8b868ace46ec64f2a945949eb570a073a Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Sun, 15 Mar 2015 11:16:31 +0000
Subject: [PATCH] Fix EntityPointer deprecation warning

[[Imported from SVN: r10077]]
---
 dune/gfe/parallel/globalp2mapper.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dune/gfe/parallel/globalp2mapper.hh b/dune/gfe/parallel/globalp2mapper.hh
index 6186147c..1202b03a 100644
--- a/dune/gfe/parallel/globalp2mapper.hh
+++ b/dune/gfe/parallel/globalp2mapper.hh
@@ -55,10 +55,11 @@ namespace Dune {
         {
 #if DUNE_VERSION_NEWER(DUNE_GRID,2,4)
           int localIndex  = p2Mapper_.subIndex(*it, i, 2);
+          int globalIndex = globalVertexIndex.index(it->template subEntity<2>(i));
 #else
           int localIndex  = p2Mapper_.map(*it, i, 2);
-#endif
           int globalIndex = globalVertexIndex.index(*it->template subEntity<2>(i));
+#endif
 
           localGlobalMap_[localIndex]  = globalIndex;
         }
-- 
GitLab