Add function GLiftOpt::num_wells()
This commit is contained in:
parent
af8fc94188
commit
5e84c8d935
@ -267,6 +267,7 @@ public:
|
||||
bool active() const;
|
||||
bool has_well(const std::string& well) const;
|
||||
bool has_group(const std::string& group) const;
|
||||
std::size_t num_wells() const;
|
||||
|
||||
static GasLiftOpt serializeObject();
|
||||
bool operator==(const GasLiftOpt& other) const;
|
||||
|
@ -72,6 +72,10 @@ bool GasLiftOpt::has_well(const std::string& wname) const {
|
||||
return (iter != this->m_wells.end());
|
||||
}
|
||||
|
||||
std::size_t GasLiftOpt::num_wells() const {
|
||||
return this->m_wells.size();
|
||||
}
|
||||
|
||||
bool GasLiftOpt::has_group(const std::string& gname) const {
|
||||
const auto iter = this->m_groups.find(gname);
|
||||
return (iter != this->m_groups.end());
|
||||
|
Loading…
Reference in New Issue
Block a user