From f3a38425cbd31d8185135b1eaa920732ea55d01c Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 8 Oct 2013 16:02:16 +0200 Subject: [PATCH] Added warning capabilities to the Deck --- opm/parser/eclipse/Parser/Parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opm/parser/eclipse/Parser/Parser.cpp b/opm/parser/eclipse/Parser/Parser.cpp index cef961314..8be5f3472 100644 --- a/opm/parser/eclipse/Parser/Parser.cpp +++ b/opm/parser/eclipse/Parser/Parser.cpp @@ -117,6 +117,7 @@ namespace Opm { } else { DeckKeywordConstPtr deckKeyword(new DeckKeyword(rawKeyword->getKeywordName(), false)); deck->addKeyword(deckKeyword); + deck->addWarning( "The keyword " + rawKeyword->getKeywordName() + " is not recognized." , file.string() , lineNR); } } rawKeyword.reset();