mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06: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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user