diff --git a/opm/simulators/wells/MultisegmentWell_impl.hpp b/opm/simulators/wells/MultisegmentWell_impl.hpp index eda6ae209..7acd70cdc 100644 --- a/opm/simulators/wells/MultisegmentWell_impl.hpp +++ b/opm/simulators/wells/MultisegmentWell_impl.hpp @@ -1621,7 +1621,6 @@ namespace Opm const auto well_status_orig = this->wellStatus_; const auto operability_orig = this->operability_status_; auto well_status_cur = well_status_orig; - int status_switch_count = 0; // only allow switcing if well is not under zero-rate target and is open from schedule bool allow_switching = !this->wellUnderZeroRateTarget(summary_state, well_state) && (this->well_ecl_.getStatus() == WellStatus::OPEN); allow_switching = allow_switching && (!fixed_control || !fixed_status); @@ -1641,7 +1640,6 @@ namespace Opm switch_count++; if (well_status_cur != this->wellStatus_) { well_status_cur = this->wellStatus_; - status_switch_count++; } } if (!changed && final_check) {