Use SegmentState when copying pressure

This commit is contained in:
Joakim Hove
2021-06-01 10:24:18 +02:00
parent eb937e8ba2
commit eac69061c2
5 changed files with 22 additions and 29 deletions

View File

@@ -2021,7 +2021,8 @@ namespace Opm {
// \Note: eventually we need to hanlde the situations that some segments are shut
assert(0u + segment_set.size() == rst_segments.size());
auto segment_pressure = well_state.segPress(well_index);
auto& segments = well_state.segments(well_index);
auto& segment_pressure = segments.pressure;
auto segment_rates = well_state.segRates(well_index);
for (const auto& rst_segment : rst_segments) {
const int segment_index = segment_set.segmentNumberToIndex(rst_segment.first);