Added test of EQUALS keyword auto creation.

This commit is contained in:
Joakim Hove 2014-11-10 17:05:54 +01:00
parent ad75b870a5
commit 456d36ccba
2 changed files with 6 additions and 0 deletions

View File

@ -142,6 +142,7 @@ BOOST_AUTO_TEST_CASE( EQUAL ) {
EclipseState state = makeState("testdata/integration_tests/BOX/BOXTEST1", parserLog);
std::shared_ptr<GridProperty<int> > pvtnum = state.getIntGridProperty("PVTNUM");
std::shared_ptr<GridProperty<int> > eqlnum = state.getIntGridProperty("EQLNUM");
std::shared_ptr<GridProperty<double> > poro = state.getDoubleGridProperty("PORO");
size_t i,j,k;
std::shared_ptr<const EclipseGrid> 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 );
}
}

View File

@ -21,6 +21,10 @@ MULTIPLY
PERMZ 0.25 /
/
EQUALS
PORO 0.25 /
/
EDIT
OIL