mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-11 08:51:55 -06:00
using correct CPI indices for connections
in WellState::reportConnections()
This commit is contained in:
parent
e23da0b6b7
commit
aaf76227f6
@ -569,7 +569,8 @@ void WellState::reportConnections(std::vector<data::Connection>& connections,
|
||||
}
|
||||
for( auto& comp : connections) {
|
||||
const auto * rates = &perf_data.phase_rates[np*local_comp_index];
|
||||
const auto& connPI = perf_data.prod_index;
|
||||
const auto * connPI = &perf_data.prod_index[np*local_comp_index];
|
||||
|
||||
|
||||
for( int i = 0; i < np; ++i ) {
|
||||
comp.rates.set( phs[ i ], rates[i] );
|
||||
|
Loading…
Reference in New Issue
Block a user