addressing comments from OPM/opm-common#1695

This commit is contained in:
Kai Bao
2020-04-17 00:36:13 +02:00
parent 251c09a288
commit 954e5e769a
4 changed files with 17 additions and 9 deletions

View File

@@ -173,7 +173,8 @@ Opm::data::Segment getSegment()
Opm::data::Segment seg1;
seg1.rates = getRates();
seg1.segNumber = 1;
seg1.pressure = 2.0;
const auto pres_idx = Opm::data::SegmentPressures::Value::Pressure;
seg1.pressures[pres_idx] = 2.0;
return seg1;
}