Use segmentstate for hydrostatic pressure drop

This commit is contained in:
Joakim Hove
2021-05-30 20:06:59 +02:00
parent 9801469488
commit 33f18279d7
3 changed files with 3 additions and 19 deletions

View File

@@ -1923,8 +1923,8 @@ namespace Opm
// TODO: we might be able to add member variables to store these values, then we update well state
// after converged
const auto hydro_pressure_drop = getHydroPressureLoss(seg);
well_state.segPressDropHydroStatic(index_of_well_)[seg] = hydro_pressure_drop.value();
auto& segments = well_state.segments(this->index_of_well_);
segments.pressure_drop_hydrostatic[seg] = hydro_pressure_drop.value();
pressure_equation -= hydro_pressure_drop;
if (frictionalPressureLossConsidered()) {