Added wellRates() member.

This commit is contained in:
Atgeirr Flø Rasmussen 2013-05-21 23:54:30 +02:00
parent 8c92a47b89
commit 8592ca825a

View File

@ -54,6 +54,7 @@ namespace Opm
} }
perfrates_.resize(wells->well_connpos[nw], 0.0); perfrates_.resize(wells->well_connpos[nw], 0.0);
perfpress_.resize(wells->well_connpos[nw], -1e100); 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_; } std::vector<double>& bhp() { return bhp_; }
const std::vector<double>& bhp() const { 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. /// One rate per well connection.
std::vector<double>& perfRates() { return perfrates_; } std::vector<double>& perfRates() { return perfrates_; }
const std::vector<double>& perfRates() const { return perfrates_; } const std::vector<double>& perfRates() const { return perfrates_; }
@ -71,6 +76,7 @@ namespace Opm
private: private:
std::vector<double> bhp_; std::vector<double> bhp_;
std::vector<double> wellrates_;
std::vector<double> perfrates_; std::vector<double> perfrates_;
std::vector<double> perfpress_; std::vector<double> perfpress_;
}; };