Use new constructor

Refer to opm-common/pull #2971. In order to use the new constructor
proposed in that PR, the constructor must now be passed a boolean
variable signalling if gaslift is active.
This commit is contained in:
Håkon Hægland
2022-03-09 09:11:10 +01:00
parent 690b33aaad
commit 367e26a719

View File

@@ -593,7 +593,8 @@ VFPPROD \n\
auto units = Opm::UnitSystem::newFIELD(); auto units = Opm::UnitSystem::newFIELD();
Opm::Parser parser; Opm::Parser parser;
auto deck = parser.parseString(table_str); 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; Opm::VFPProdProperties properties;
properties.addTable( table ); properties.addTable( table );
@@ -653,7 +654,8 @@ BOOST_AUTO_TEST_CASE(ParseInterpolateRealisticVFPPROD)
BOOST_REQUIRE(deck.hasKeyword("VFPPROD")); BOOST_REQUIRE(deck.hasKeyword("VFPPROD"));
BOOST_CHECK_EQUAL(deck.count("VFPPROD"), 1); 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; Opm::VFPProdProperties properties;
properties.addTable(table); properties.addTable(table);