From 8cd08728f751614c94b8c88cf11f8e246b657563 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Thu, 17 Mar 2016 09:57:59 +0800 Subject: [PATCH] rename ParseMode as ParseContext. --- examples/wells_example.cpp | 10 +++++----- tests/test_timer.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/wells_example.cpp b/examples/wells_example.cpp index 02fe261ba..fbb3db616 100644 --- a/examples/wells_example.cpp +++ b/examples/wells_example.cpp @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include #include @@ -35,10 +35,10 @@ try simtimer.init(parameters); // Read input file - ParseMode parseMode; + ParseContext parseContext; Opm::ParserPtr parser(new Opm::Parser()); - Opm::DeckConstPtr deck = parser->parseFile(file_name , parseMode); - Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck , parseMode)); + Opm::DeckConstPtr deck = parser->parseFile(file_name , parseContext); + Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck , parseContext)); std::cout << "Done!" << std::endl; // Setup grid @@ -108,7 +108,7 @@ try TwophaseFluid fluid(incomp_properties); - TransportModel model(fluid, *grid->c_grid(), porevol, gravity[2], true); + TransportContextl model(fluid, *grid->c_grid(), porevol, gravity[2], true); TransportSolver tsolver(model); diff --git a/tests/test_timer.cpp b/tests/test_timer.cpp index 4b7552a21..3512ddd69 100644 --- a/tests/test_timer.cpp +++ b/tests/test_timer.cpp @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include @@ -44,8 +44,8 @@ BOOST_AUTO_TEST_CASE(CreateTimer) { const std::string filename1 = "TESTTIMER.DATA"; Opm::ParserPtr parser(new Opm::Parser() ); - Opm::ParseMode parseMode; - Opm::DeckConstPtr parserDeck = parser->parseFile( filename1 , parseMode); + Opm::ParseContext parseContext; + Opm::DeckConstPtr parserDeck = parser->parseFile( filename1 , parseContext); Opm::TimeMapPtr timeMap(new Opm::TimeMap(parserDeck)); Opm::SimulatorTimer simtimer;