From 94caac820128c1518506249267971e0a53912d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Petter=20=C3=98ren=20Hauge?= Date: Wed, 29 Nov 2017 12:24:51 +0100 Subject: [PATCH 1/2] Fix spelling --- opm/output/eclipse/Summary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/output/eclipse/Summary.cpp b/opm/output/eclipse/Summary.cpp index 2e3974b..789ea47 100644 --- a/opm/output/eclipse/Summary.cpp +++ b/opm/output/eclipse/Summary.cpp @@ -867,7 +867,7 @@ Summary::Summary( const EclipseState& st, if (init_config.getRestartRootName().size() <= ECL_STRING8_LENGTH * SUMMARY_RESTART_SIZE) restart_case = init_config.getRestartRootName().c_str(); else - OpmLog::warning("Resart case too long - not embedded in SMSPEC file"); + OpmLog::warning("Restart case too long - not embedded in SMSPEC file"); } ecl_sum.reset( ecl_sum_alloc_restart_writer(basename, restart_case, From e9f9d7442e0889882941132290f7c6a449ecb8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Petter=20=C3=98ren=20Hauge?= Date: Thu, 30 Nov 2017 14:52:22 +0100 Subject: [PATCH 2/2] Add warning unsupported keywords --- opm/output/eclipse/Summary.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/opm/output/eclipse/Summary.cpp b/opm/output/eclipse/Summary.cpp index 789ea47..8190941 100644 --- a/opm/output/eclipse/Summary.cpp +++ b/opm/output/eclipse/Summary.cpp @@ -883,6 +883,8 @@ Summary::Summary( const EclipseState& st, /* register all keywords handlers and pair with the newly-registered ert * entry. */ + std::set< std::string > unsupported_keywords; + for( const auto& node : sum ) { const auto* keyword = node.keyword(); @@ -905,7 +907,10 @@ Summary::Summary( const EclipseState& st, this->handlers->misc_nodes.emplace( keyword, nodeptr ); } else { - if( funs.find( keyword ) == funs.end() ) continue; + if( funs.find( keyword ) == funs.end() ) { + unsupported_keywords.insert(keyword); + continue; + } if ((node.type() == ECL_SMSPEC_COMPLETION_VAR) || (node.type() == ECL_SMSPEC_BLOCK_VAR)) { int global_index = node.num() - 1; @@ -940,6 +945,9 @@ Summary::Summary( const EclipseState& st, this->handlers->handlers.emplace_back( nodeptr, handle ); } } + for ( const auto& keyword : unsupported_keywords ) { + Opm::OpmLog::info("Keyword " + std::string(keyword) + " is unhandled"); + } } void Summary::add_timestep( int report_step,