fixed: use correct indices for well state completion data

This commit is contained in:
Arne Morten Kvarving 2016-11-04 14:46:20 +01:00
parent e348baa6c7
commit 630d5477d8

View File

@ -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()));
}