Add get method for LIFTOPT item 4.

This commit is contained in:
Håkon Hægland 2020-09-16 21:20:58 +02:00
parent 0d85293fcc
commit 672eb6e689
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())