From e7030e6f5b835352c0668b272c94f269428471a8 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Mon, 27 Oct 2014 15:46:51 +0000
Subject: [PATCH] Use method 'size' instead of 'nGlobalEntity'

[[Imported from SVN: r9935]]
---
 dune/gfe/parallel/globalp2mapper.hh     | 4 ++--
 dune/gfe/parallel/matrixcommunicator.hh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dune/gfe/parallel/globalp2mapper.hh b/dune/gfe/parallel/globalp2mapper.hh
index 09a35b91..3a8527ff 100644
--- a/dune/gfe/parallel/globalp2mapper.hh
+++ b/dune/gfe/parallel/globalp2mapper.hh
@@ -85,8 +85,8 @@ namespace Dune {
           //int localIndex  = globalEdgeIndex.localIndex (*it->template subEntity<1>(i)) + gridView.size(2);
           int localIndex  = p2Mapper_.map(*it, 0, 0);
           int globalIndex = globalElementIndex.index(*it->template subEntity<0>(0))
-                            + globalEdgeIndex.nGlobalEntity()
-                            + globalVertexIndex.nGlobalEntity();
+                            + globalEdgeIndex.size(1)
+                            + globalVertexIndex.size(2);
 
           localGlobalMap_[localIndex]  = globalIndex;
           globalLocalMap_[globalIndex] = localIndex;
diff --git a/dune/gfe/parallel/matrixcommunicator.hh b/dune/gfe/parallel/matrixcommunicator.hh
index 7c23a364..a807c167 100644
--- a/dune/gfe/parallel/matrixcommunicator.hh
+++ b/dune/gfe/parallel/matrixcommunicator.hh
@@ -102,7 +102,7 @@ public:
     // Create occupation pattern in matrix
     Dune::MatrixIndexSet occupationPattern;
 
-    occupationPattern.resize(guIndex1_.nGlobalEntity(), guIndex2_.nGlobalEntity());
+    occupationPattern.resize(localMapper1_.size(), localMapper2_.size());
 
     for (size_t k = 0; k < globalMatrixEntries.size(); ++k)
       occupationPattern.add(globalMatrixEntries[k].row, globalMatrixEntries[k].col);
-- 
GitLab