Merge pull request #3833 from hakonhagland/gl_active

Use new VFPProdTable constructor
This commit is contained in:
Joakim Hove 2022-03-09 10:16:29 +01:00 committed by GitHub
commit ae32b44124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -593,7 +593,8 @@ VFPPROD \n\
auto units = Opm::UnitSystem::newFIELD();
Opm::Parser parser;
auto deck = parser.parseString(table_str);
Opm::VFPProdTable table(deck["VFPPROD"].front(), units);
bool gaslift_active = false;
Opm::VFPProdTable table(deck["VFPPROD"].front(), gaslift_active, units);
Opm::VFPProdProperties properties;
properties.addTable( table );
@ -653,7 +654,8 @@ BOOST_AUTO_TEST_CASE(ParseInterpolateRealisticVFPPROD)
BOOST_REQUIRE(deck.hasKeyword("VFPPROD"));
BOOST_CHECK_EQUAL(deck.count("VFPPROD"), 1);
Opm::VFPProdTable table(deck["VFPPROD"].front(), units);
bool gaslift_active = false;
Opm::VFPProdTable table(deck["VFPPROD"].front(), gaslift_active, units);
Opm::VFPProdProperties properties;
properties.addTable(table);