Use compressedIndexForInterior() for mapping cartesian indices.

This commit is contained in:
Atgeirr Flø Rasmussen 2022-09-05 12:42:54 +02:00
parent 69b32f7004
commit e9cba9e0c1
3 changed files with 1 additions and 7 deletions

View File

@ -317,9 +317,6 @@ namespace Opm {
// a vector of all the wells.
std::vector<WellInterfacePtr > well_container_{};
// map from logically cartesian cell indices to compressed ones
std::vector<int> cartesian_to_compressed_;
std::vector<bool> is_cell_perforated_{};
void initializeWellState(const int timeStepIdx,

View File

@ -440,8 +440,6 @@ protected:
std::vector<WellProdIndexCalculator> prod_index_calc_;
std::vector<int> cartesian_to_compressed_;
std::vector<int> pvt_region_idx_;
mutable std::unordered_set<std::string> closed_this_step_;

View File

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