Use well index for segment hydrostatic pressure drop

This commit is contained in:
Joakim Hove
2021-05-27 08:28:09 +02:00
parent ee1a1c6afc
commit 960de96d75
3 changed files with 10 additions and 7 deletions

View File

@@ -241,14 +241,16 @@ public:
return &seg_pressdrop_friction_[top_segment_index];
}
std::vector<double>& segPressDropHydroStatic()
double* segPressDropHydroStatic(std::size_t well_index)
{
return seg_pressdrop_hydorstatic_;
const int top_segment_index = this->top_segment_index_[well_index];
return &seg_pressdrop_hydorstatic_[top_segment_index];
}
const std::vector<double>& segPressDropHydroStatic() const
const double* segPressDropHydroStatic(std::size_t well_index) const
{
return seg_pressdrop_hydorstatic_;
const int top_segment_index = this->top_segment_index_[well_index];
return &seg_pressdrop_hydorstatic_[top_segment_index];
}
std::vector<double>& segPressDropAcceleration()