remove dead store

This commit is contained in:
Arne Morten Kvarving
2023-12-08 18:42:41 +01:00
parent 3534c6d1fa
commit 7841f6abcb

View File

@@ -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) {