BUGFIX. Do not increase well index for shut wells.

Shut wells are not added to the well list and the well index should
therefore not be increased when well control is set. This is similar to
whats is done for shut wells in createWellsFromSpecs.
This commit is contained in:
Tor Harald Sandve
2014-10-27 07:20:03 +01:00
parent da6b4109ba
commit 3fe61bfb1b

View File

@@ -412,8 +412,7 @@ namespace Opm
}
if (well->getStatus(timeStep) == WellCommon::SHUT) {
//well_controls_shut_well( w_->ctrls[well_index] );
well_index++;
//SHUT wells are not added to the well list
continue;
}