From b328c13bc0ba2a59402800f253343e8eb022c9b0 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 20 Feb 2014 10:45:08 +0100 Subject: [PATCH] Assume begin_cell_centroid to what the name tells us: an iterator over then centroids. Therfore we do not need to call center() in getCoordinate. This is done in the iterator class returned from CpGrid. --- opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp b/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp index f180662b0..0715d1741 100644 --- a/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp +++ b/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp @@ -494,7 +494,7 @@ namespace template double getCoordinate(T t, int i) { - return t->center()[i]; + return (*t)[i]; }