diff --git a/opm/simulators/wells/BlackoilWellModel.hpp b/opm/simulators/wells/BlackoilWellModel.hpp index ec36549cd..2b41cbcdc 100644 --- a/opm/simulators/wells/BlackoilWellModel.hpp +++ b/opm/simulators/wells/BlackoilWellModel.hpp @@ -316,9 +316,6 @@ namespace Opm { // a vector of all the wells. std::vector well_container_{}; - - // map from logically cartesian cell indices to compressed ones - std::vector cartesian_to_compressed_; std::vector is_cell_perforated_{}; diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.hpp b/opm/simulators/wells/BlackoilWellModelGeneric.hpp index 4a24ecc85..8ada33c7d 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.hpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.hpp @@ -439,8 +439,6 @@ protected: std::vector> local_parallel_well_info_; std::vector prod_index_calc_; - - std::vector cartesian_to_compressed_; std::vector pvt_region_idx_; diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 137def342..3da43ddaa 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -128,8 +128,7 @@ namespace Opm { for ( size_t c=0; c < connectionSet.size(); c++ ) { const auto& connection = connectionSet.get(c); - int compressed_idx = cartesian_to_compressed_.at(connection.global_index()); - + int compressed_idx = compressedIndexForInterior(connection.global_index()); if ( compressed_idx >= 0 ) { // Ignore connections in inactive/remote cells. wellCells.push_back(compressed_idx); }