Merge pull request #1928 from hakonhagland/liftopt_4

Add get method for LIFTOPT item 4.
This commit is contained in:
Bård Skaflestad 2020-09-17 08:00:51 +02:00 committed by GitHub
commit fb93e08ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -221,6 +221,7 @@ public:
void min_eco_gradient(double min_eco_gradient);
void min_wait(double min_wait);
void all_newton(double all_newton);
bool all_newton() const;
void add_group(const Group& group);
void add_well(const Well& well);
bool active() const;

View File

@ -51,6 +51,10 @@ void GasLiftOpt::all_newton(double all_newton) {
this->m_all_newton = all_newton;
}
bool GasLiftOpt::all_newton() const {
return this->m_all_newton;
}
const GasLiftOpt::Group& GasLiftOpt::group(const std::string& gname) const {
const auto iter = this->m_groups.find(gname);
if (iter == this->m_groups.end())