Use SegmentState for rates

This commit is contained in:
Joakim Hove
2021-06-01 11:34:11 +02:00
parent 357cb11667
commit ac12c8b3a4
5 changed files with 19 additions and 68 deletions

View File

@@ -213,7 +213,8 @@ namespace {
}
const auto rateTop = 1000.0 * wellID;
auto segRates = wstate.segRates(wellID);
auto& segments = wstate.segments(wellID);
auto& segRates = segments.rates;
if (wat) { segRates[iw] = rateTop; }
if (oil) { segRates[io] = rateTop; }