dunify the aquifer models

This commit is contained in:
Tor Harald Sandve
2020-11-24 14:58:15 +01:00
parent 02bab0957d
commit 8a0fde9104
4 changed files with 66 additions and 54 deletions

View File

@@ -170,11 +170,10 @@ BlackoilAquiferModel<TypeTag>::init()
throw std::runtime_error("Aquifers currently do not work in parallel.");
// Get all the carter tracy aquifer properties data and put it in aquifers vector
const auto& ugrid = simulator_.vanguard().grid();
const int number_of_cells = simulator_.gridView().size(0);
cartesian_to_compressed_ = cartesianToCompressed(number_of_cells,
Opm::UgGridHelpers::globalCell(ugrid));
this->simulator_.vanguard().grid().globalCell().data());
const auto& connections = aquifer.connections();
for (const auto& aq : aquifer.ct()) {