From a085337dc05b2bdf9af1c9d8a65848094d3951f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 19 Apr 2012 16:11:58 +0200 Subject: [PATCH] Initialise current well control in the appropriate place. --- opm/core/WellsManager.cpp | 1 + opm/core/utility/newwells.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/opm/core/WellsManager.cpp b/opm/core/WellsManager.cpp index 2e6eb3b6..dd386d69 100644 --- a/opm/core/WellsManager.cpp +++ b/opm/core/WellsManager.cpp @@ -598,6 +598,7 @@ namespace Opm // We only append a single control at this point. // TODO: Handle multiple controls. ok = well_controls_append(well_data[w].control, well_data[w].target, w_->ctrls[w]); + w_->ctrls[w]->current = 0; if (!ok) { THROW("Failed to add well controls."); } diff --git a/opm/core/utility/newwells.c b/opm/core/utility/newwells.c index bac7cc25..4e839505 100644 --- a/opm/core/utility/newwells.c +++ b/opm/core/utility/newwells.c @@ -407,9 +407,6 @@ well_controls_append(enum control_type type , ctrl->target[ctrl->num] = target; ctrl->num += 1; - - /* TODO: Review this: */ - ctrl->current = 0; } return ok;