mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Change Deck access methods/types to references
opm-parser#677 changes the return types for the Deck family of classes. This patch fixes all broken code from that patch set. https://github.com/OPM/opm-parser/pull/677
This commit is contained in:
@@ -1051,10 +1051,10 @@ VFPPROD \n\
|
||||
deck = parser->parseString(table_str, parse_mode);
|
||||
|
||||
BOOST_REQUIRE(deck->hasKeyword("VFPPROD"));
|
||||
BOOST_CHECK_EQUAL(deck->numKeywords("VFPPROD"), 1);
|
||||
BOOST_CHECK_EQUAL(deck->count("VFPPROD"), 1);
|
||||
|
||||
Opm::VFPProdTable table;
|
||||
table.init(deck->getKeyword("VFPPROD", 0), units);
|
||||
table.init(deck->getKeyword("VFPPROD", 0), *units);
|
||||
|
||||
Opm::VFPProdProperties properties(&table);
|
||||
|
||||
@@ -1112,13 +1112,13 @@ BOOST_AUTO_TEST_CASE(ParseInterpolateRealisticVFPPROD)
|
||||
boost::filesystem::path file("VFPPROD2");
|
||||
|
||||
deck = parser->parseFile(file.string(), parse_mode);
|
||||
Opm::checkDeck(deck);
|
||||
Opm::checkDeck(deck, parser);
|
||||
|
||||
BOOST_REQUIRE(deck->hasKeyword("VFPPROD"));
|
||||
BOOST_CHECK_EQUAL(deck->numKeywords("VFPPROD"), 1);
|
||||
BOOST_CHECK_EQUAL(deck->count("VFPPROD"), 1);
|
||||
|
||||
Opm::VFPProdTable table;
|
||||
table.init(deck->getKeyword("VFPPROD", 0), units);
|
||||
table.init(deck->getKeyword("VFPPROD", 0), *units);
|
||||
|
||||
Opm::VFPProdProperties properties(&table);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user