addressing the reviewing comments for PR OPM/opm-simulators#3039

putting the numerical aquifer related modification in a function and the
function is called after the equilibration calculation, so it will work
for different equilibration methods.
This commit is contained in:
Kai Bao
2021-03-15 10:21:40 +01:00
parent afac0fb485
commit 116b77bd8a
2 changed files with 59 additions and 27 deletions
@@ -60,7 +60,6 @@ public:
{
this->cell_to_aquifer_cell_idx_.resize(this->ebos_simulator_.gridView().size(/*codim=*/0), -1);
// TODO: here, the parallelisation is obviously ignored
for (size_t idx = 0; idx < aquifer.numCells(); ++idx) {
const auto& cell = *(aquifer.getCellPrt(idx));
const int global_idx = cell.global_index;