mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
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:
1 parent
55e452c605
commit
7523ffe15f
1 file changed
+4
@@ -456,9 +456,13 @@ namespace Opm
|
||||
{
|
||||
// we need to create a trival segment related values to avoid there will be some
|
||||
// multi-segment wells added later.
|
||||
nseg_ = nw;
|
||||
seg_number_.clear();
|
||||
top_segment_index_.reserve(nw);
|
||||
seg_number_.reserve(nw);
|
||||
for (int w = 0; w < nw; ++w) {
|
||||
top_segment_index_.push_back(w);
|
||||
seg_number_.push_back(1); // Top segment is segment #1
|
||||
}
|
||||
segpress_ = bhp();
|
||||
segrates_ = wellRates();
|
||||
|
||||
Reference in new issue
Block a user