From a2fd7307b82f015803c5387c802864d581293462 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 9 Jan 2014 12:06:26 +0100 Subject: [PATCH] Using the well_controls_get_xxx() functions. --- opm/polymer/SimulatorPolymer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opm/polymer/SimulatorPolymer.cpp b/opm/polymer/SimulatorPolymer.cpp index 4e21fb23d..db18092fb 100644 --- a/opm/polymer/SimulatorPolymer.cpp +++ b/opm/polymer/SimulatorPolymer.cpp @@ -30,6 +30,7 @@ #include #include +#include #include #include @@ -672,8 +673,8 @@ namespace Opm const int nw = wells->number_of_wells; for (int w = 0; w < nw; ++w) { const WellControls* wc = wells->ctrls[w]; - if (wc->current >= 0) { - if (wc->type[wc->current] == BHP) { + if (well_controls_get_current( wc ) >= 0) { + if (well_controls_get_current_type(wc) == BHP) { return false; } } @@ -682,6 +683,7 @@ namespace Opm } + } // anonymous namespace