diff --git a/opm/autodiff/FlowMain.hpp b/opm/autodiff/FlowMain.hpp index 9a5a7fdaa..04fc88979 100644 --- a/opm/autodiff/FlowMain.hpp +++ b/opm/autodiff/FlowMain.hpp @@ -413,7 +413,7 @@ namespace Opm ParseContext parseContext({{ ParseContext::PARSE_RANDOM_SLASH , InputError::IGNORE }}); deck_ = parser->parseFile(deck_filename, parseContext); checkDeck(deck_, parser); - MissingFeatures::checkKeywords(deck_); + MissingFeatures::checkKeywords(*deck_); eclipse_state_.reset(new EclipseState(deck_, parseContext)); auto ioConfig = eclipse_state_->getIOConfig(); ioConfig->setOutputDir(output_dir_); diff --git a/opm/autodiff/MissingFeatures.cpp b/opm/autodiff/MissingFeatures.cpp index 7f8524d6f..dea047d5e 100644 --- a/opm/autodiff/MissingFeatures.cpp +++ b/opm/autodiff/MissingFeatures.cpp @@ -28,7 +28,7 @@ namespace Opm { namespace MissingFeatures { - void checkKeywords(DeckConstPtr deck) + void checkKeywords(const Deck& deck) { // These keywords are supported by opm-parser, but are not supported // by flow. For some of them, only part of the options are supported. @@ -57,8 +57,8 @@ namespace MissingFeatures { "WTEST", "WTRACER", "ZIPPY2" }; // check deck and keyword for flow and parser. - for (size_t idx = 0; idx < deck->size(); ++idx) { - const auto& keyword = deck->getKeyword(idx); + for (size_t idx = 0; idx < deck.size(); ++idx) { + const auto& keyword = deck.getKeyword(idx); std::unordered_set::const_iterator it; it = unsupported_keywords.find(keyword.name()); if (it != unsupported_keywords.end()) { diff --git a/opm/autodiff/MissingFeatures.hpp b/opm/autodiff/MissingFeatures.hpp index 9a55d2a55..2cd805616 100644 --- a/opm/autodiff/MissingFeatures.hpp +++ b/opm/autodiff/MissingFeatures.hpp @@ -24,7 +24,7 @@ namespace Opm { namespace MissingFeatures { - void checkKeywords(std::shared_ptr deck); + void checkKeywords(const Deck& deck); }