Skip to content

Commit

Permalink
Add warning unsupported keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Petter Øren Hauge committed Dec 1, 2017
1 parent 94caac8 commit e9f9d74
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion opm/output/eclipse/Summary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e9f9d74

Please sign in to comment.