also pass the parseContext and errorGuard to Opm::checkDeck()

This commit is contained in:
Andreas Lauser 2019-04-04 17:01:41 +02:00
parent 32feeefae3
commit 6f1018f11a
2 changed files with 4 additions and 2 deletions

View File

@ -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));

View File

@ -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);