diff --git a/opm/autodiff/MissingFeatures.cpp b/opm/autodiff/MissingFeatures.cpp index 4d93edb95..4364163e8 100644 --- a/opm/autodiff/MissingFeatures.cpp +++ b/opm/autodiff/MissingFeatures.cpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include @@ -33,7 +33,7 @@ namespace Opm { // These keywords are supported by opm-parser, but are not supported // by flow. For some of them, only part of the options are supported. // The list is used to output messages only. - std::vector unsupported_keywords = { + std::unordered_set unsupported_keywords = { "ACTDIMS", "ADSALNOD", "API", "AQUCON", "AQUDIMS", "AQUNUM" "BLOCK_PROBE", "COMPLUMP", "COMPSEGS", "CONNECTION", "CPR", "DATE", "ECHO", "EDITNNC", "ENDINC", "ENDNUM", "ENDPOINT_SPECIFIERS", @@ -60,10 +60,8 @@ namespace Opm { if (checkDeck(deck, parser)) { for (size_t idx = 0; idx < deck->size(); ++idx) { const auto& keyword = deck->getKeyword(idx); - std::vector::const_iterator it; - it = std::find(unsupported_keywords.begin(), - unsupported_keywords.end(), - keyword.name()); + std::unordered_set::const_iterator it; + it = unsupported_keywords.find(keyword.name()); if (it != unsupported_keywords.end()) { std::string msg = "Keyword '" + keyword.name() + "' is not supported by flow.\n" + "In file " + keyword.getFileName() + ", line " + std::to_string(keyword.getLineNumber()) + "\n";