mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adapting to the upstream interface change.
This commit is contained in:
@@ -195,14 +195,16 @@ BlackoilAquiferModel<TypeTag>::init()
|
||||
}
|
||||
|
||||
if (aquifer.hasNumericalAquifer()) {
|
||||
const auto aquifers = aquifer.numericalAquifers().aquifers();
|
||||
const auto& ugrid = simulator_.vanguard().grid();
|
||||
const int number_of_cells = simulator_.gridView().size(0);
|
||||
const int* global_cell = Opm::UgGridHelpers::globalCell(ugrid);
|
||||
const std::unordered_map<int, int> cartesian_to_compressed = cartesianToCompressed(number_of_cells,
|
||||
global_cell);
|
||||
for (const auto& elem : aquifer.numericalAquifers().aquifers()) {
|
||||
this->aquifers_numerical.emplace_back(elem.second,
|
||||
cartesian_to_compressed, this->simulator_, global_cell);
|
||||
// for (const auto& elem : ers().aquifers()) {
|
||||
for (const auto& [id, aqu] : aquifers) {
|
||||
this->aquifers_numerical.emplace_back(aqu,
|
||||
cartesian_to_compressed, this->simulator_, global_cell);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user