mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Disallow switching to group control in local well solve
This commit is contained in:
@@ -301,13 +301,14 @@ namespace Opm
|
|||||||
} else {
|
} else {
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
if (!fixed_control) {
|
if (!fixed_control) {
|
||||||
const bool hasGroupControl = this->isInjector() ? inj_controls.hasControl(Well::InjectorCMode::GRUP) :
|
// *** Comment out checking group constraints (subject to change) ***
|
||||||
prod_controls.hasControl(Well::ProducerCMode::GRUP);
|
// const bool hasGroupControl = this->isInjector() ? inj_controls.hasControl(Well::InjectorCMode::GRUP) :
|
||||||
|
// prod_controls.hasControl(Well::ProducerCMode::GRUP);
|
||||||
|
|
||||||
changed = this->checkIndividualConstraints(ws, summary_state, deferred_logger, inj_controls, prod_controls);
|
changed = this->checkIndividualConstraints(ws, summary_state, deferred_logger, inj_controls, prod_controls);
|
||||||
if (hasGroupControl) {
|
// if (hasGroupControl) {
|
||||||
changed = changed || this->checkGroupConstraints(well_state, group_state, schedule, summary_state,deferred_logger);
|
// changed = changed || this->checkGroupConstraints(well_state, group_state, schedule, summary_state,deferred_logger);
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
const bool thp_controlled = this->isInjector() ? ws.injection_cmode == Well::InjectorCMode::THP :
|
const bool thp_controlled = this->isInjector() ? ws.injection_cmode == Well::InjectorCMode::THP :
|
||||||
|
|||||||
Reference in New Issue
Block a user