Add productivity_index to SingleWellState

This commit is contained in:
Joakim Hove
2021-08-05 12:17:57 +02:00
parent 2f504536f4
commit 67bd2fd333
7 changed files with 10 additions and 19 deletions

View File

@@ -597,9 +597,10 @@ namespace Opm
std::transform(src, src + np, dest, dest, std::plus<>{});
};
auto& ws = well_state.well(this->index_of_well_);
auto& perf_data = well_state.perfData(this->index_of_well_);
auto* wellPI = well_state.productivityIndex(this->index_of_well_).data();
auto* connPI = perf_data.prod_index.data();
auto* wellPI = ws.productivity_index.data();
setToZero(wellPI);