Changes Opm::SummaryConfig::createRunSummary to be backed by a field.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user