From e627f35176574f259e60f21e0f06a9e484f193c5 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Wed, 5 Apr 2017 13:50:53 +0200 Subject: [PATCH] removing well_potential_ from WellStateFullyImplicitBlackoil --- opm/autodiff/WellStateFullyImplicitBlackoil.hpp | 8 -------- opm/autodiff/WellStateFullyImplicitBlackoilDense.hpp | 1 - 2 files changed, 9 deletions(-) diff --git a/opm/autodiff/WellStateFullyImplicitBlackoil.hpp b/opm/autodiff/WellStateFullyImplicitBlackoil.hpp index 82040b7a8..9a6729c9b 100644 --- a/opm/autodiff/WellStateFullyImplicitBlackoil.hpp +++ b/opm/autodiff/WellStateFullyImplicitBlackoil.hpp @@ -103,9 +103,6 @@ namespace Opm current_controls_[w] = well_controls_get_current(wells->ctrls[w]); } - well_potentials_.clear(); - well_potentials_.resize(nperf * np, 0.0); - is_new_well_.resize(nw, true); // intialize wells that have been there before @@ -207,10 +204,6 @@ namespace Opm std::vector& currentControls() { return current_controls_; } const std::vector& currentControls() const { return current_controls_; } - /// One rate per phase and well connection. - std::vector& wellPotentials() { return well_potentials_; } - const std::vector& wellPotentials() const { return well_potentials_; } - data::Wells report(const PhaseUsage &pu) const override { data::Wells res = WellState::report(pu); @@ -275,7 +268,6 @@ namespace Opm private: std::vector perfphaserates_; std::vector current_controls_; - std::vector well_potentials_; // marking whether the well is just added // for newly added well, the current initialized rates from WellState diff --git a/opm/autodiff/WellStateFullyImplicitBlackoilDense.hpp b/opm/autodiff/WellStateFullyImplicitBlackoilDense.hpp index db795b95f..b6271542d 100644 --- a/opm/autodiff/WellStateFullyImplicitBlackoilDense.hpp +++ b/opm/autodiff/WellStateFullyImplicitBlackoilDense.hpp @@ -57,7 +57,6 @@ namespace Opm using BaseType :: numPhases; using BaseType :: perfPhaseRates; using BaseType :: currentControls; - using BaseType :: wellPotentials; /// Allocate and initialize if wells is non-null. Also tries /// to give useful initial values to the bhp(), wellRates()