rename ParseMode as ParseContext.

This commit is contained in:
Liu Ming
2016-03-17 09:57:59 +08:00
parent 0a5be9ba52
commit 81f6c2dd8e
21 changed files with 324 additions and 324 deletions

View File

@@ -29,7 +29,7 @@
#include <boost/test/unit_test.hpp>
#include <opm/core/wells/WellCollection.hpp>
#include <opm/parser/eclipse/Parser/Parser.hpp>
#include <opm/parser/eclipse/Parser/ParseMode.hpp>
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Well.hpp>
@@ -42,9 +42,9 @@ using namespace Opm;
BOOST_AUTO_TEST_CASE(AddWellsAndGroupToCollection) {
ParserPtr parser(new Parser());
std::string scheduleFile("wells_group.data");
ParseMode parseMode;
DeckConstPtr deck = parser->parseFile(scheduleFile, parseMode);
EclipseStateConstPtr eclipseState(new EclipseState(deck, parseMode));
ParseContext parseContext;
DeckConstPtr deck = parser->parseFile(scheduleFile, parseContext);
EclipseStateConstPtr eclipseState(new EclipseState(deck, parseContext));
PhaseUsage pu = phaseUsageFromDeck(eclipseState);
GroupTreeNodePtr field=eclipseState->getSchedule()->getGroupTree(2)->getNode("FIELD");