diff --git a/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.hpp b/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.hpp index bd05397a1..a51571f65 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.hpp @@ -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; diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.cpp index 4d01e76fa..20d11cf0d 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/GasLiftOpt.cpp @@ -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());