fixed: use correct indices for well state completion data
This commit is contained in:
parent
e348baa6c7
commit
630d5477d8
@ -259,8 +259,8 @@ namespace Opm
|
||||
|
||||
auto& completion = well.completions[ i ];
|
||||
completion.index = active_index;
|
||||
completion.pressure = this->perfPress()[ well_index + i ];
|
||||
completion.reservoir_rate = this->perfRates()[ well_index + i ];
|
||||
completion.pressure = this->perfPress()[ itr.second[1] + i ];
|
||||
completion.reservoir_rate = this->perfRates()[ itr.second[1] + i ];
|
||||
}
|
||||
assert(num_perf_well == int(well.completions.size()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user