diff --git a/examples/flow_polymer.cpp b/examples/flow_polymer.cpp index 0c6f912b5..7f87b412b 100644 --- a/examples/flow_polymer.cpp +++ b/examples/flow_polymer.cpp @@ -57,6 +57,7 @@ #include #include #include +#include #include #include @@ -163,10 +164,11 @@ try Opm::DeckConstPtr deck; std::shared_ptr eclipseState; + Opm::ParseMode parseMode; try { - deck = parser->parseFile(deck_filename); + deck = parser->parseFile(deck_filename , parseMode); Opm::checkDeck(deck); - eclipseState.reset(new Opm::EclipseState(deck)); + eclipseState.reset(new Opm::EclipseState(deck , parseMode)); } catch (const std::invalid_argument& e) { std::cerr << "Failed to create valid ECLIPSESTATE object. See logfile: " << logFile << std::endl; diff --git a/examples/sim_poly2p_comp_reorder.cpp b/examples/sim_poly2p_comp_reorder.cpp index fe057c441..cfd483efb 100644 --- a/examples/sim_poly2p_comp_reorder.cpp +++ b/examples/sim_poly2p_comp_reorder.cpp @@ -48,6 +48,7 @@ #include #include +#include #include #include @@ -99,8 +100,9 @@ try if (use_deck) { std::string deck_filename = param.get("deck_filename"); ParserPtr parser(new Opm::Parser()); - deck = parser->parseFile(deck_filename); - eclipseState.reset(new Opm::EclipseState(deck)); + ParseMode parseMode; + deck = parser->parseFile(deck_filename , parseMode); + eclipseState.reset(new Opm::EclipseState(deck , parseMode)); // Grid init grid.reset(new GridManager(deck)); diff --git a/examples/sim_poly2p_incomp_reorder.cpp b/examples/sim_poly2p_incomp_reorder.cpp index 32fc2d2b6..a5c053c9d 100644 --- a/examples/sim_poly2p_incomp_reorder.cpp +++ b/examples/sim_poly2p_incomp_reorder.cpp @@ -48,6 +48,7 @@ #include #include +#include #include #include @@ -98,9 +99,10 @@ try double gravity[3] = { 0.0 }; if (use_deck) { std::string deck_filename = param.get("deck_filename"); + ParseMode parseMode; ParserPtr parser(new Opm::Parser()); - deck = parser->parseFile(deck_filename); - eclipseState.reset(new Opm::EclipseState(deck)); + deck = parser->parseFile(deck_filename , parseMode); + eclipseState.reset(new Opm::EclipseState(deck , parseMode)); // Grid init grid.reset(new GridManager(deck)); diff --git a/examples/sim_poly_fi2p_comp_ad.cpp b/examples/sim_poly_fi2p_comp_ad.cpp index 2208636bf..cbab13154 100644 --- a/examples/sim_poly_fi2p_comp_ad.cpp +++ b/examples/sim_poly_fi2p_comp_ad.cpp @@ -63,6 +63,7 @@ #include #include #include +#include #include #include @@ -137,6 +138,7 @@ try } std::string logFile = output_dir + "/LOGFILE.txt"; + Opm::ParseMode parseMode; Opm::ParserPtr parser(new Opm::Parser()); { std::shared_ptr streamLog = std::make_shared(logFile , Opm::Log::DefaultMessageTypes); @@ -149,9 +151,9 @@ try Opm::DeckConstPtr deck; std::shared_ptr eclipseState; try { - deck = parser->parseFile(deck_filename); + deck = parser->parseFile(deck_filename , parseMode); Opm::checkDeck(deck); - eclipseState.reset(new Opm::EclipseState(deck)); + eclipseState.reset(new Opm::EclipseState(deck , parseMode)); } catch (const std::invalid_argument& e) { std::cerr << "Failed to create valid ECLIPSESTATE object. See logfile: " << logFile << std::endl;