Use well index for well water perf velocity

This commit is contained in:
Joakim Hove
2021-06-02 11:32:11 +02:00
parent 8f9a3f0140
commit f62b0a5d1e
3 changed files with 8 additions and 8 deletions

View File

@@ -254,12 +254,12 @@ public:
return &perf_skin_pressure_[this->first_perf_index_[well_index]];
}
std::vector<double>& perfWaterVelocity() {
return perf_water_velocity_;
double * perfWaterVelocity(std::size_t well_index) {
return &perf_water_velocity_[this->first_perf_index_[well_index]];
}
const std::vector<double>& perfWaterVelocity() const {
return perf_water_velocity_;
const double * perfWaterVelocity(std::size_t well_index) const {
return &perf_water_velocity_[this->first_perf_index_[well_index]];
}
template<class Comm>