Added initial shutting of injection wells.

This commit is contained in:
Kjetil Olsen Lye 2012-06-15 13:38:07 +02:00
parent 8cd85b0438
commit 407582b437

View File

@ -490,6 +490,10 @@ namespace Opm
if (cpos == -1 && mode != InjectionControl::GRUP) {
THROW("Control for " << wci_line.control_mode_ << " not specified in well " << well_names[wix]);
}
// We need to check if the well is shut or not
if (wci_line.open_shut_flag_ == "SHUT") {
cpos = ~cpos;
}
set_current_control(wix, cpos, w_);
// Set well component fraction.