diff --git a/ewoms/common/cartesianindexmapper.hh b/ewoms/common/cartesianindexmapper.hh index 1494b429a..a6999bde1 100644 --- a/ewoms/common/cartesianindexmapper.hh +++ b/ewoms/common/cartesianindexmapper.hh @@ -200,18 +200,23 @@ namespace Dune void cartesianCoordinate(const int compressedElementIndex, std::array& coords) const { int gc = cartesianIndex( compressedElementIndex ); - if( dimension >=2 ) + if( dimension == 3 ) { - for( int d=0; d