Renames runsum to doRunSummary, adds accessor.
This commit is contained in:
@@ -176,6 +176,8 @@ namespace Opm {
|
||||
serializer(summary_keywords);
|
||||
}
|
||||
|
||||
bool doRunSummary() const;
|
||||
|
||||
private:
|
||||
SummaryConfig( const Deck& deck,
|
||||
const Schedule& schedule,
|
||||
@@ -192,6 +194,8 @@ namespace Opm {
|
||||
keyword_list keywords;
|
||||
std::set<std::string> short_keywords;
|
||||
std::set<std::string> summary_keywords;
|
||||
|
||||
bool doRunSummary_ { false };
|
||||
};
|
||||
|
||||
} //namespace Opm
|
||||
|
||||
@@ -1106,4 +1106,8 @@ bool SummaryConfig::operator==(const Opm::SummaryConfig& data) const {
|
||||
this->summary_keywords == data.summary_keywords;
|
||||
}
|
||||
|
||||
bool SummaryConfig::doRunSummary() const {
|
||||
return this->doRunSummary_;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -878,6 +878,6 @@ SUMMARY
|
||||
const auto& summary_config1 = createSummary("");
|
||||
const auto& summary_config2 = createSummary(deck_string2);
|
||||
|
||||
BOOST_CHECK(!summary_config1.runsum());
|
||||
BOOST_CHECK(summary_config2.runsum());
|
||||
BOOST_CHECK(!summary_config1.doRunSummary());
|
||||
BOOST_CHECK(summary_config2.doRunSummary());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user