Merge pull request #6958 from steink/fix-max-well-status-switch-for-wells

Update operability status when max_well_status_switch is exceeded
This commit is contained in:
Tor Harald Sandve authored and GitHub committed 2026-03-23 12:39:13 +01:00
commit 0602f376f2
1 file changed
+6 -1
+6 -1
View File
@@ -1021,14 +1021,19 @@ namespace Opm
"and the well is therefore kept stopped.",
this->name(), number_of_well_reopenings_);
deferred_logger.debug(msg);
changed_to_stopped_this_step_ = old_well_operable;
} else {
changed_to_stopped_this_step_ = false;
}
this->stopWell();
changed_to_stopped_this_step_ = true;
bool converged_zero_rate = this->solveWellWithZeroRate(
simulator, dt, groupStateHelper, well_state
);
if (this->param_.shut_unsolvable_wells_ && !converged_zero_rate ) {
this->operability_status_.solvable = false;
} else {
this->operability_status_.can_obtain_bhp_with_thp_limit = false;
this->operability_status_.obey_thp_limit_under_bhp_limit = false;
}
// we increse the number of reopenings to avoid output in the next iteration
number_of_well_reopenings_++;