diff --git a/opm/simulators/aquifers/AquiferCarterTracy.hpp b/opm/simulators/aquifers/AquiferCarterTracy.hpp index 264fcd7c8..4d41ff61b 100644 --- a/opm/simulators/aquifers/AquiferCarterTracy.hpp +++ b/opm/simulators/aquifers/AquiferCarterTracy.hpp @@ -95,8 +95,6 @@ protected: const auto& ugrid = this->ebos_simulator_.vanguard().grid(); const auto& grid = eclState.getInputGrid(); - auto globalCellIdx = ugrid.globalCell(); - // We hack the cell depth values for now. We can actually get it from elementcontext pos this->cell_depth_.resize(this->size(), this->aquiferDepth()); this->alphai_.resize(this->size(), 1.0); diff --git a/opm/simulators/aquifers/AquiferFetkovich.hpp b/opm/simulators/aquifers/AquiferFetkovich.hpp index 469ac04e1..efd5ff4f7 100644 --- a/opm/simulators/aquifers/AquiferFetkovich.hpp +++ b/opm/simulators/aquifers/AquiferFetkovich.hpp @@ -98,9 +98,6 @@ protected: const auto& ugrid = this->ebos_simulator_.vanguard().grid(); const auto& grid = eclState.getInputGrid(); - auto globalCellIdx = ugrid.globalCell(); - - // We hack the cell depth values for now. We can actually get it from elementcontext pos this->cell_depth_.resize(this->size(), this->aquiferDepth()); this->alphai_.resize(this->size(), 1.0);