mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Using well_controls_well_is_open() function
This commit is contained in:
parent
b639aefaaf
commit
0c36af631f
@ -298,7 +298,7 @@ namespace Opm
|
|||||||
const int nw = wells->number_of_wells;
|
const int nw = wells->number_of_wells;
|
||||||
for (int w = 0; w < nw; ++w) {
|
for (int w = 0; w < nw; ++w) {
|
||||||
const WellControls* wc = wells->ctrls[w];
|
const WellControls* wc = wells->ctrls[w];
|
||||||
if (well_controls_get_current( wc ) >= 0) {
|
if (well_controls_well_is_open( wc )) {
|
||||||
if (well_controls_get_current_type(wc) == BHP ) {
|
if (well_controls_get_current_type(wc) == BHP ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user