mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
also pass the parseContext and errorGuard to Opm::checkDeck()
This commit is contained in:
parent
32feeefae3
commit
6f1018f11a
@ -198,7 +198,7 @@ int main(int argc, char** argv)
|
|||||||
Opm::MissingFeatures::checkKeywords(*deck, parseContext, errorGuard);
|
Opm::MissingFeatures::checkKeywords(*deck, parseContext, errorGuard);
|
||||||
|
|
||||||
if ( outputCout )
|
if ( outputCout )
|
||||||
Opm::checkDeck(*deck, parser);
|
Opm::checkDeck(*deck, parser, parseContext, errorGuard);
|
||||||
|
|
||||||
eclipseState.reset( new Opm::EclipseState(*deck, parseContext, errorGuard ));
|
eclipseState.reset( new Opm::EclipseState(*deck, parseContext, errorGuard ));
|
||||||
schedule.reset(new Opm::Schedule(*deck, *eclipseState, parseContext, errorGuard));
|
schedule.reset(new Opm::Schedule(*deck, *eclipseState, parseContext, errorGuard));
|
||||||
|
@ -648,11 +648,13 @@ BOOST_AUTO_TEST_CASE(ParseInterpolateRealisticVFPPROD)
|
|||||||
{
|
{
|
||||||
auto units = Opm::UnitSystem::newMETRIC();
|
auto units = Opm::UnitSystem::newMETRIC();
|
||||||
|
|
||||||
|
Opm::ParseContext parseContext;
|
||||||
|
Opm::ErrorGuard errorGuard;
|
||||||
Opm::Parser parser;
|
Opm::Parser parser;
|
||||||
boost::filesystem::path file("VFPPROD2");
|
boost::filesystem::path file("VFPPROD2");
|
||||||
|
|
||||||
auto deck = parser.parseFile(file.string());
|
auto deck = parser.parseFile(file.string());
|
||||||
Opm::checkDeck(deck, parser);
|
Opm::checkDeck(deck, parser, parseContext, errorGuard);
|
||||||
|
|
||||||
BOOST_REQUIRE(deck.hasKeyword("VFPPROD"));
|
BOOST_REQUIRE(deck.hasKeyword("VFPPROD"));
|
||||||
BOOST_CHECK_EQUAL(deck.count("VFPPROD"), 1);
|
BOOST_CHECK_EQUAL(deck.count("VFPPROD"), 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user