Avoid superfluos code to reset globalIsProductionGrup to false

This commit is contained in:
Joakim Hove committed 2021-04-21 09:04:55 +02:00
1 parent 32a035f8a5
commit ed2fb11084
1 file changed
+1 -8
@@ -1229,14 +1229,7 @@ namespace Opm
if (it != end) {
// ... set the GRUP/not GRUP states.
const int well_index = it->second[0];
if (this->status_[well_index] != Well::Status::OPEN) {
// Well is shut.
if (well.isInjector()) {
globalIsInjectionGrup_[global_well_index] = 0;
} else {
globalIsProductionGrup_[global_well_index] = 0;
}
} else {
if (this->status_[well_index] == Well::Status::OPEN) {
if (well.isInjector()) {
globalIsInjectionGrup_[global_well_index] = (currentInjectionControls()[well_index] == Well::InjectorCMode::GRUP);
} else {