From baeeb34508ffa6c73934a5f89aaa44b8c568ec1e Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Wed, 4 Aug 2021 14:19:02 +0200 Subject: [PATCH] Merge two perforation data members in WellState --- opm/simulators/wells/WellState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/WellState.cpp b/opm/simulators/wells/WellState.cpp index 87b79e1d8..b18edfbcc 100644 --- a/opm/simulators/wells/WellState.cpp +++ b/opm/simulators/wells/WellState.cpp @@ -1033,7 +1033,7 @@ void WellState::resetConnectionTransFactors(const int well_index, auto& perf_data = this->perfData(well_index); for (std::size_t conn_index = 0; conn_index < new_perf_data.size(); conn_index++) { - if (perf_data.cell_index[conn_index] != static_cast(new_perf_data[conn_index].cell_index)) { + if (perf_data.cell_index[conn_index] != static_cast(new_perf_data[conn_index].cell_index)) { throw std::invalid_argument { "Cell index mismatch in connection " + std::to_string(conn_index)