mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user