Merge pull request #2465 from joakim-hove/wg-events-has

Add method WellGroupEvents::has(wgname)
This commit is contained in:
Joakim Hove 2021-05-10 08:47:06 +02:00 committed by GitHub
commit 3a4a8c91c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,7 @@ namespace Opm
void addGroup(const std::string& gname);
void addEvent(const std::string& wgname, ScheduleEvents::Events event);
bool hasEvent(const std::string& wgname, uint64_t eventMask) const;
bool has(const std::string& wgname) const;
void clearEvent(const std::string& wgname, uint64_t eventMask);
void reset();
const Events& at(const std::string& wgname) const;

View File

@ -108,4 +108,8 @@ namespace Opm {
}
bool WellGroupEvents::has(const std::string& wgname) const {
return this->m_wellgroup_events.count(wgname);
}
}