From c5c965adecb7a5beab67707169059c53472cc2c0 Mon Sep 17 00:00:00 2001 From: babrodtk Date: Mon, 10 Aug 2015 09:31:25 +0200 Subject: [PATCH] Fixed bugs in tests for VFP tables --- tests/test_vfpproperties.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/test_vfpproperties.cpp b/tests/test_vfpproperties.cpp index 9aa61bdcd..090cdf02f 100644 --- a/tests/test_vfpproperties.cpp +++ b/tests/test_vfpproperties.cpp @@ -498,8 +498,10 @@ BOOST_AUTO_TEST_CASE(ExtrapolatePlaneADB) ADB::V adb_v_vapour(num_wells); ADB::V adb_v_u(num_wells); ADB::V adb_v_liquid(num_wells); + table_ids.resize(num_wells); for (unsigned int w=0; wbhp(table_ids, *wells, qs, thp, alq).value(); @@ -853,7 +861,8 @@ VFPPROD \n\ std::shared_ptr units(Opm::UnitSystem::newFIELD()); Opm::ParserPtr parser(new Opm::Parser()); - deck = parser->parseString(table_str); + Opm::ParseMode parse_mode; + deck = parser->parseString(table_str, parse_mode); BOOST_REQUIRE(deck->hasKeyword("VFPPROD")); BOOST_CHECK_EQUAL(deck->numKeywords("VFPPROD"), 1); @@ -913,9 +922,10 @@ BOOST_AUTO_TEST_CASE(ParseInterpolateRealisticVFPPROD) std::shared_ptr units(Opm::UnitSystem::newMETRIC()); Opm::ParserPtr parser(new Opm::Parser()); + Opm::ParseMode parse_mode; boost::filesystem::path file("tests/VFPPROD2"); - deck = parser->parseFile(file.string()); + deck = parser->parseFile(file.string(), parse_mode); Opm::checkDeck(deck); BOOST_REQUIRE(deck->hasKeyword("VFPPROD"));