diff --git a/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp b/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp index 4e6b13d6f..99fc346f0 100644 --- a/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp +++ b/opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp @@ -171,7 +171,6 @@ namespace Opm { const std::vector& getCOORD() const; const std::vector& getZCORN() const; const std::vector& getACTNUM( ) const; - const std::string& getMAPUNITS() const { return m_mapunits; } ; /* The fixupZCORN method is run as part of constructiong the grid. This will adjust the diff --git a/tests/parser/EclipseGridTests.cpp b/tests/parser/EclipseGridTests.cpp index f0ca4edb1..0ba6af990 100644 --- a/tests/parser/EclipseGridTests.cpp +++ b/tests/parser/EclipseGridTests.cpp @@ -2814,8 +2814,6 @@ BOOST_AUTO_TEST_CASE(TEST_GDFILE_2) { BOOST_CHECK( actGrid1[n] == 1 ); } - BOOST_CHECK( grid1.getMAPUNITS() == "" ); - auto deck2 = parser.parseString( deckData2) ; Opm::EclipseGrid grid2( deck2); @@ -2828,16 +2826,12 @@ BOOST_AUTO_TEST_CASE(TEST_GDFILE_2) { BOOST_CHECK( actGrid2[n] == ref_act_egrid[n] ); } - BOOST_CHECK( grid2.getMAPUNITS() == "" ); - auto deck3a = parser.parseString( deckData3a) ; Opm::EclipseGrid grid3a( deck3a); // mapunits and mapaxes define in deck (only) - BOOST_CHECK( grid3a.getMAPUNITS() == "FEET" ); - std::vector actGrid3 = grid3a.getACTNUM(); // check that actnum is reset from gdfile, ACTNUM input in deck @@ -2858,8 +2852,6 @@ BOOST_AUTO_TEST_CASE(TEST_GDFILE_2) { // mapunits and mapaxes both in egrid and deck. Uses properties // from the egrid keyword gdfile input after MAPUNITS and MAPAXES - BOOST_CHECK( grid3b.getMAPUNITS() == "METRES" ); - actGrid3 = grid3b.getACTNUM(); // check that actnum is reset from deck since input after keyword GDFILE @@ -2878,8 +2870,6 @@ BOOST_AUTO_TEST_CASE(TEST_GDFILE_2) { auto deck3c = parser.parseString( deckData3c) ; Opm::EclipseGrid grid3c( deck3c); - BOOST_CHECK( grid3c.getMAPUNITS() == "FEET" ); - } BOOST_AUTO_TEST_CASE(TEST_COLLAPSED_CELL) {