From 8592ca825a138ff8a23d6bc073795c5135bc321c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= <atgeirr@sintef.no> Date: Tue, 21 May 2013 23:54:30 +0200 Subject: [PATCH] Added wellRates() member. --- opm/core/simulator/WellState.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opm/core/simulator/WellState.hpp b/opm/core/simulator/WellState.hpp index f1edc5d7a..97c71e401 100644 --- a/opm/core/simulator/WellState.hpp +++ b/opm/core/simulator/WellState.hpp @@ -54,6 +54,7 @@ namespace Opm } perfrates_.resize(wells->well_connpos[nw], 0.0); perfpress_.resize(wells->well_connpos[nw], -1e100); + wellrates_.resize(wells->well_connpos[nw] * wells->number_of_phases, 0.0); } } @@ -61,6 +62,10 @@ namespace Opm std::vector<double>& bhp() { return bhp_; } const std::vector<double>& bhp() const { return bhp_; } + /// One rate per well and phase. + std::vector<double>& wellRates() { return wellrates_; } + const std::vector<double>& wellRates() const { return wellrates_; } + /// One rate per well connection. std::vector<double>& perfRates() { return perfrates_; } const std::vector<double>& perfRates() const { return perfrates_; } @@ -71,6 +76,7 @@ namespace Opm private: std::vector<double> bhp_; + std::vector<double> wellrates_; std::vector<double> perfrates_; std::vector<double> perfpress_; };