Changes Opm::SummaryConfig::createRunSummary to be backed by a field.

This commit is contained in:
Williham Williham Totland
2020-03-13 07:45:52 +01:00
parent a270964846
commit 0910e55be7
2 changed files with 5 additions and 5 deletions

View File

@@ -176,7 +176,9 @@ namespace Opm {
serializer(summary_keywords);
}
bool createRunSummary() const;
bool createRunSummary() const {
return m_createRunSummary;
}
private:
SummaryConfig( const Deck& deck,
@@ -194,6 +196,8 @@ namespace Opm {
keyword_list keywords;
std::set<std::string> short_keywords;
std::set<std::string> summary_keywords;
bool m_createRunSummary;
};
} //namespace Opm

View File

@@ -1118,8 +1118,4 @@ bool SummaryConfig::operator==(const Opm::SummaryConfig& data) const {
this->summary_keywords == data.summary_keywords;
}
bool SummaryConfig::createRunSummary() const {
return this->hasKeyword("RUNSUM");
}
}