From 6f1018f11a78b1e61bb18994f41386a0c022e917 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Thu, 4 Apr 2019 17:01:41 +0200 Subject: [PATCH] also pass the parseContext and errorGuard to Opm::checkDeck() --- flow/flow.cpp | 2 +- tests/test_vfpproperties.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flow/flow.cpp b/flow/flow.cpp index 5d22985df..9fea97880 100644 --- a/flow/flow.cpp +++ b/flow/flow.cpp @@ -198,7 +198,7 @@ int main(int argc, char** argv) Opm::MissingFeatures::checkKeywords(*deck, parseContext, errorGuard); if ( outputCout ) - Opm::checkDeck(*deck, parser); + Opm::checkDeck(*deck, parser, parseContext, errorGuard); eclipseState.reset( new Opm::EclipseState(*deck, parseContext, errorGuard )); schedule.reset(new Opm::Schedule(*deck, *eclipseState, parseContext, errorGuard)); diff --git a/tests/test_vfpproperties.cpp b/tests/test_vfpproperties.cpp index 12eb34f67..343d6815b 100644 --- a/tests/test_vfpproperties.cpp +++ b/tests/test_vfpproperties.cpp @@ -648,11 +648,13 @@ BOOST_AUTO_TEST_CASE(ParseInterpolateRealisticVFPPROD) { auto units = Opm::UnitSystem::newMETRIC(); + Opm::ParseContext parseContext; + Opm::ErrorGuard errorGuard; Opm::Parser parser; boost::filesystem::path file("VFPPROD2"); auto deck = parser.parseFile(file.string()); - Opm::checkDeck(deck, parser); + Opm::checkDeck(deck, parser, parseContext, errorGuard); BOOST_REQUIRE(deck.hasKeyword("VFPPROD")); BOOST_CHECK_EQUAL(deck.count("VFPPROD"), 1);