diff --git a/opm/core/grid/GridHelpers.hpp b/opm/core/grid/GridHelpers.hpp index 3464d18d..939275ba 100644 --- a/opm/core/grid/GridHelpers.hpp +++ b/opm/core/grid/GridHelpers.hpp @@ -215,7 +215,7 @@ double getCoordinate(T* cc, int i) template double getCoordinate(T t, int i) { - return t->center()[i]; + return (*t)[i]; } } // end namespace UGGridHelpers diff --git a/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp b/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp index f180662b..0715d174 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]; }