Merge pull request #96 from joakim-hove/well-controls-open-close

Using well_controls_well_is_open() function
This commit is contained in:
Bård Skaflestad
2014-03-04 21:57:14 +01:00

View File

@@ -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;
} }