From 4a97dcf2c74e4f9f902b3d5a4975e24e20ec656c Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Mon, 22 Dec 2014 16:31:33 +0100
Subject: [PATCH] [Extern]  Adjust to changes in the MCMG mapper

---
 dune/tectonic/globalratestatefriction.hh | 2 +-
 src/sand-wedge.cc                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/tectonic/globalratestatefriction.hh b/dune/tectonic/globalratestatefriction.hh
index 8a00d350..1e7e8344 100644
--- a/dune/tectonic/globalratestatefriction.hh
+++ b/dune/tectonic/globalratestatefriction.hh
@@ -37,7 +37,7 @@ class GlobalRateStateFriction : public GlobalFriction<Matrix, Vector> {
         GridView, Dune::MCMGVertexLayout> const vertexMapper(gridView);
     for (auto it = gridView.template begin<block_size>();
          it != gridView.template end<block_size>(); ++it) {
-      auto const i = vertexMapper.map(*it);
+      auto const i = vertexMapper.index(*it);
       auto const coordinate = it->geometry().corner(0);
       if (not frictionalBoundary.containsVertex(i)) {
         restrictions[i] = trivialNonlinearity;
diff --git a/src/sand-wedge.cc b/src/sand-wedge.cc
index 042ad384..323e86d5 100644
--- a/src/sand-wedge.cc
+++ b/src/sand-wedge.cc
@@ -297,7 +297,7 @@ int main(int argc, char *argv[]) {
       for (auto it = leafView.begin<dims>(); it != leafView.end<dims>(); ++it) {
         auto const geometry = it->geometry();
         assert(geometry.corners() == 1);
-        vertexCoordinates[vertexMapper.map(*it)] = geometry.corner(0);
+        vertexCoordinates[vertexMapper.index(*it)] = geometry.corner(0);
       }
     }
 
-- 
GitLab