From 1a37c410fc77065a516bdff159d90378c2bd4ce3 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Fri, 15 Jun 2012 14:08:28 +0200 Subject: [PATCH] Made the grouptree respect the new convention of tilde. --- opm/core/wells/WellsGroup.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opm/core/wells/WellsGroup.cpp b/opm/core/wells/WellsGroup.cpp index 3da16f776..afa17f12d 100644 --- a/opm/core/wells/WellsGroup.cpp +++ b/opm/core/wells/WellsGroup.cpp @@ -737,7 +737,9 @@ namespace Opm void WellNode::shutWell() { if (shut_well_) { - set_current_control(self_index_, -1, wells_); + // We set the tilde of the current control + // set_current_control(self_index_, -1, wells_); + wells_->ctrls[self_index_]->current = ~ wells_->ctrls[self_index_]->current; } else { const double target = 0.0; @@ -755,7 +757,7 @@ namespace Opm wells_->ctrls[self_index_]->target[group_control_index_] = target; std::copy(distr, distr + np, wells_->ctrls[self_index_]->distr + np * group_control_index_); } - set_current_control(self_index_, -1, wells_); + wells_->ctrls[self_index_]->current = ~ wells_->ctrls[self_index_]->current; } }