Allow for shut wells in solvent run

This commit is contained in:
Tor Harald Sandve 2016-03-16 11:00:00 +01:00
parent a3ae13b892
commit 41aa55ec82

View File

@ -106,9 +106,15 @@ namespace Opm
ScheduleConstPtr schedule = BaseType::eclipse_state_->getSchedule();
for (const auto& well_solvent : schedule->getWells( currentStep )) {
if (well_solvent->getStatus( currentStep ) == WellCommon::SHUT) {
continue;
}
WellInjectionProperties injection = well_solvent->getInjectionProperties(currentStep);
if (injection.injectorType == WellInjector::GAS) {
double solventFraction = well_solvent->getSolventFraction(currentStep);
// Find the solvent well in the well list and add properties to it
int wix = 0;
for (; wix < nw; ++wix) {