extra tests for injector wells in group control

This commit is contained in:
Kjetil Olsen Lye 2012-04-13 13:17:25 +02:00
parent 62e4b791d2
commit 9d1c9dee68

View File

@ -151,15 +151,25 @@ namespace Opm
return false; return false;
} }
} }
std::cout << "checking here" << std::endl; std::cout << "checking here" << std::endl;
// Check for self: // Check for self:
if(well_rate[self_index_] - prodSpec().BHP_limit_ > epsilon) { if (wells_->type[self_index_] == PRODUCER) {
return false; if (well_rate[self_index_] - prodSpec().BHP_limit_ > epsilon) {
} return false;
}
if(well_rate[self_index_] - prodSpec().fluid_volume_max_rate_ > epsilon) {
return false; if (well_rate[self_index_] - prodSpec().fluid_volume_max_rate_ > epsilon) {
return false;
}
} else {
if (well_rate[self_index_] - injSpec().BHP_limit_ > epsilon) {
return false;
}
if (well_rate[self_index_] - injSpec().surface_flow_max_rate_ > epsilon) {
return false;
}
} }
return true; return true;
} }