From 0c36af631fb0bddd7e2c16ebe6a57824a81f1555 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 4 Mar 2014 14:31:33 +0100 Subject: [PATCH] Using well_controls_well_is_open() function --- opm/autodiff/SimulatorIncompTwophaseAd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/SimulatorIncompTwophaseAd.cpp b/opm/autodiff/SimulatorIncompTwophaseAd.cpp index e602e87a9..9e3f73af5 100644 --- a/opm/autodiff/SimulatorIncompTwophaseAd.cpp +++ b/opm/autodiff/SimulatorIncompTwophaseAd.cpp @@ -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; }