diff --git a/opm/core/grid/GridHelpers.cpp b/opm/core/grid/GridHelpers.cpp index 5ebbf53c..40ac5b57 100644 --- a/opm/core/grid/GridHelpers.cpp +++ b/opm/core/grid/GridHelpers.cpp @@ -66,7 +66,7 @@ double faceArea(const UnstructuredGrid& grid, int face_index) int faceTag(const UnstructuredGrid& grid, boost::iterator_range::const_iterator face) { - return grid.cell_facetag[&(*face)-&(*(cell2Faces(grid)[0].begin()))]; + return grid.cell_facetag[face-cell2Faces(grid)[0].begin()]; } SparseTableView cell2Faces(const UnstructuredGrid& grid)