Construct Segment-Related Structures in initLegacy()

Forgotten in previous commit.  This restores our ability to run
flow-legacy with the new WellStateFullyImplicitBlackoil::report().

Thanks to Kai Bao for alerting me to the issue.
This commit is contained in:
Bård Skaflestad
2018-10-26 16:54:22 +02:00
parent 55e452c605
commit 7523ffe15f

View File

@@ -456,9 +456,13 @@ namespace Opm
{ {
// we need to create a trival segment related values to avoid there will be some // we need to create a trival segment related values to avoid there will be some
// multi-segment wells added later. // multi-segment wells added later.
nseg_ = nw;
seg_number_.clear();
top_segment_index_.reserve(nw); top_segment_index_.reserve(nw);
seg_number_.reserve(nw);
for (int w = 0; w < nw; ++w) { for (int w = 0; w < nw; ++w) {
top_segment_index_.push_back(w); top_segment_index_.push_back(w);
seg_number_.push_back(1); // Top segment is segment #1
} }
segpress_ = bhp(); segpress_ = bhp();
segrates_ = wellRates(); segrates_ = wellRates();