mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
extra tests for injector wells in group control
This commit is contained in:
parent
62e4b791d2
commit
9d1c9dee68
@ -151,15 +151,25 @@ namespace Opm
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
std::cout << "checking here" << std::endl;
|
||||
// Check for self:
|
||||
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 (wells_->type[self_index_] == PRODUCER) {
|
||||
if (well_rate[self_index_] - prodSpec().BHP_limit_ > 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user