Use well index to access WellState::perfThroughput()

This commit is contained in:
Joakim Hove
2021-06-02 11:14:57 +02:00
parent 42d1b4c4a8
commit 89ae75b46c
3 changed files with 9 additions and 9 deletions

View File

@@ -238,12 +238,12 @@ public:
return well_potentials_;
}
std::vector<double>& perfThroughput() {
return perf_water_throughput_;
double * perfThroughput(std::size_t well_index) {
return &perf_water_throughput_[this->first_perf_index_[well_index]];
}
const std::vector<double>& perfThroughput() const {
return perf_water_throughput_;
const double * perfThroughput(std::size_t well_index) const {
return &perf_water_throughput_[this->first_perf_index_[well_index]];
}
std::vector<double>& perfSkinPressure() {