From c73aa08dae4372525b29562ca2f836000af7fd55 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Wed, 5 Aug 2009 15:02:49 +0000
Subject: [PATCH] fix uses of subIndex and LevelBoundaryPatch

[[Imported from SVN: r4473]]
---
 src/rodassembler.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rodassembler.cc b/src/rodassembler.cc
index 360beef7..aaa08163 100644
--- a/src/rodassembler.cc
+++ b/src/rodassembler.cc
@@ -216,7 +216,7 @@ getResultantForce(const LevelBoundaryPatch<GridType>& boundary,
 {
     using namespace Dune;
 
-    if (grid_ != &boundary.getGrid())
+    if (grid_ != &boundary.gridView().grid())
         DUNE_THROW(Dune::Exception, "The boundary patch has to match the grid of the assembler!");
 
     const typename GridType::Traits::LeafIndexSet& indexSet = grid_->leafIndexSet();
@@ -274,7 +274,7 @@ getResultantForce(const LevelBoundaryPatch<GridType>& boundary,
             // the canonical basis of R^3
 
             FieldMatrix<double,3,3> orientationMatrix;
-            sol[indexSet.subIndex(*eIt,nIt->indexInInside())].q.matrix(orientationMatrix,1);
+            sol[indexSet.subIndex(*eIt,nIt->indexInInside(),1)].q.matrix(orientationMatrix);
             
             orientationMatrix.umv(localStress, canonicalStress);
             
-- 
GitLab