Use PerfData for connection productivity index

This commit is contained in:
Joakim Hove
2021-06-07 09:10:53 +02:00
parent 81c5ce8843
commit 3c3a4afcfc
5 changed files with 8 additions and 19 deletions

View File

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