From f9f5bacee45acf6e0b59009ef068e1eb44f4b1af Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 11 Nov 2016 11:29:12 +0100 Subject: [PATCH] cleaning up more unused flag from WellsGroup --- opm/core/wells/WellCollection.hpp | 1 - opm/core/wells/WellsGroup.cpp | 3 +-- opm/core/wells/WellsGroup.hpp | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/opm/core/wells/WellCollection.hpp b/opm/core/wells/WellCollection.hpp index 1a6b6195..77662e6c 100644 --- a/opm/core/wells/WellCollection.hpp +++ b/opm/core/wells/WellCollection.hpp @@ -152,7 +152,6 @@ namespace Opm // This will be used to traverse the bottom nodes. std::vector leaf_nodes_; - bool just_update_well_targets_; bool having_vrep_groups_; diff --git a/opm/core/wells/WellsGroup.cpp b/opm/core/wells/WellsGroup.cpp index fc7358a0..b307e39d 100644 --- a/opm/core/wells/WellsGroup.cpp +++ b/opm/core/wells/WellsGroup.cpp @@ -66,7 +66,6 @@ namespace Opm const InjectionSpecification& inje_spec, const PhaseUsage& phase_usage) : parent_(NULL), - should_update_well_targets_(false), individual_control_(true), // always begin with individual control efficiency_factor_(efficiency_factor), name_(myname), @@ -1144,7 +1143,7 @@ namespace Opm if (group_control_index_ < 0) { append_well_controls(RESERVOIR_RATE, ntarget, invalid_alq, invalid_vfp, &distr[0], self_index_, wells_); - // TODO: basically, on group control index is not enough eventually. There can be more than one sources for the + // TODO: basically, one group control index is not enough eventually. There can be more than one sources for the // group control group_control_index_ = well_controls_get_num(wells_->ctrls[self_index_]) - 1; // it should only apply for nodes with GRUP injeciton control diff --git a/opm/core/wells/WellsGroup.hpp b/opm/core/wells/WellsGroup.hpp index 0cf9fa39..984be04c 100644 --- a/opm/core/wells/WellsGroup.hpp +++ b/opm/core/wells/WellsGroup.hpp @@ -258,9 +258,6 @@ namespace Opm WellsGroupInterface* parent_; - // when some well (mabye group also later), change status from group control - // to individual control, or the other way, the targets for the wells in the group need to be redistributed. - bool should_update_well_targets_; // Whether well is running under the group control target. // Current only consider one level of control. // So not putting it in the WellsGroupInterface yet.