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 committed 2014-03-04 21:57:14 +01:00
commit 6b0f7c493c
1 file changed
+1 -1
+1 -1
View File
@@ -298,7 +298,7 @@ namespace Opm
const int nw = wells->number_of_wells;
for (int w = 0; w < nw; ++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 ) {
return false;
}