From 94250f6e0349dc70e215b272fe40ab499cafd409 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 1 Oct 2013 16:05:01 +0200 Subject: [PATCH] Added (default == false) verbose keyword for the parseFile() method --- opm/parser/eclipse/Parser/Parser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opm/parser/eclipse/Parser/Parser.cpp b/opm/parser/eclipse/Parser/Parser.cpp index f0837e6d0..04be707a1 100644 --- a/opm/parser/eclipse/Parser/Parser.cpp +++ b/opm/parser/eclipse/Parser/Parser.cpp @@ -83,6 +83,7 @@ namespace Opm { void Parser::parseFile(DeckPtr deck, const boost::filesystem::path& file, const boost::filesystem::path& rootPath, bool parseStrict) const { + bool verbose = false; std::ifstream inputstream; inputstream.open(file.string().c_str()); @@ -98,8 +99,14 @@ namespace Opm { if (includeFile.is_relative()) includeFile = rootPath / includeFile; + if (verbose) + std::cout << rawKeyword->getKeywordName() << " " << includeFile << std::endl; + parseFile(deck, includeFile, rootPath , parseStrict); } else { + if (verbose) + std::cout << rawKeyword->getKeywordName() << std::endl; + if (hasKeyword(rawKeyword->getKeywordName())) { ParserKeywordConstPtr parserKeyword = m_parserKeywords.at(rawKeyword->getKeywordName()); DeckKeywordConstPtr deckKeyword = parserKeyword->parse(rawKeyword);