diff --git a/src/rodassembler.cc b/src/rodassembler.cc index 360beef7d4f9943f9750f50956c7a53d602f94de..aaa08163644451eb6fad91e5befc6b0b214da476 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);