mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: use correct indices for well state completion data
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user