Implements SummaryConfig::doRunSummary()

This commit is contained in:
Williham Totland
2020-03-12 12:14:00 +01:00
parent 7f6518af5f
commit 36e91f5cff
2 changed files with 2 additions and 5 deletions

View File

@@ -194,8 +194,6 @@ namespace Opm {
keyword_list keywords;
std::set<std::string> short_keywords;
std::set<std::string> summary_keywords;
bool doRunSummary_ { false };
};
} //namespace Opm

View File

@@ -126,6 +126,7 @@ namespace {
"NLINEARS",
"NLINSMAX",
"NLINSMIN",
"RUNSUM",
"STEPTYPE",
"WNEWTON",
};
@@ -135,7 +136,6 @@ namespace {
}
const std::unordered_set<std::string> udq_blacklist {
"RUNSUM",
"SUMTHIN",
};
@@ -441,7 +441,6 @@ inline void keywordR2R( SummaryConfig::keyword_list& /* list */,
* print output. Unfortunately its *recognised* as a region keyword
* because of its structure and position. Hence the special handling of ignoring it.
*/
if( keyword.name() == "RUNSUM" ) return;
if( keyword.name() == "RPTONLY" ) return;
if( is_region_to_region(keyword.name()) ) {
@@ -1119,7 +1118,7 @@ bool SummaryConfig::operator==(const Opm::SummaryConfig& data) const {
}
bool SummaryConfig::doRunSummary() const {
return this->doRunSummary_;
return this->hasKeyword("RUNSUM");
}
}