From 456d36ccba1e2ecebdd4efb18dd32bc7b765e0cf Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Mon, 10 Nov 2014 17:05:54 +0100 Subject: [PATCH] Added test of EQUALS keyword auto creation. --- opm/parser/eclipse/IntegrationTests/BoxTest.cpp | 2 ++ testdata/integration_tests/BOX/BOXTEST1 | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/opm/parser/eclipse/IntegrationTests/BoxTest.cpp b/opm/parser/eclipse/IntegrationTests/BoxTest.cpp index 074436545..273b6c52d 100644 --- a/opm/parser/eclipse/IntegrationTests/BoxTest.cpp +++ b/opm/parser/eclipse/IntegrationTests/BoxTest.cpp @@ -142,6 +142,7 @@ BOOST_AUTO_TEST_CASE( EQUAL ) { EclipseState state = makeState("testdata/integration_tests/BOX/BOXTEST1", parserLog); std::shared_ptr > pvtnum = state.getIntGridProperty("PVTNUM"); std::shared_ptr > eqlnum = state.getIntGridProperty("EQLNUM"); + std::shared_ptr > poro = state.getDoubleGridProperty("PORO"); size_t i,j,k; std::shared_ptr grid = state.getEclipseGrid(); @@ -151,6 +152,7 @@ BOOST_AUTO_TEST_CASE( EQUAL ) { BOOST_CHECK_EQUAL( pvtnum->iget(i,j,k) , k ); BOOST_CHECK_EQUAL( eqlnum->iget(i,j,k) , 77 + 2 * k ); + BOOST_CHECK_EQUAL( poro->iget(i,j,k) , 0.25 ); } } diff --git a/testdata/integration_tests/BOX/BOXTEST1 b/testdata/integration_tests/BOX/BOXTEST1 index 06cad6229..0716ab73c 100644 --- a/testdata/integration_tests/BOX/BOXTEST1 +++ b/testdata/integration_tests/BOX/BOXTEST1 @@ -21,6 +21,10 @@ MULTIPLY PERMZ 0.25 / / +EQUALS + PORO 0.25 / +/ + EDIT OIL