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& bhp() { return bhp_; } const std::vector& bhp() const { return bhp_; } + /// One rate per well and phase. + std::vector& wellRates() { return wellrates_; } + const std::vector& wellRates() const { return wellrates_; } + /// One rate per well connection. std::vector& perfRates() { return perfrates_; } const std::vector& perfRates() const { return perfrates_; } @@ -71,6 +76,7 @@ namespace Opm private: std::vector bhp_; + std::vector wellrates_; std::vector perfrates_; std::vector perfpress_; };