mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
some cleaning up
not functionality changes.
This commit is contained in:
@@ -800,7 +800,7 @@ protected:
|
||||
const unsigned int elemIdx = elemMapper.index(element);
|
||||
cellCenterDepth_[elemIdx] = cellCenterDepth(element);
|
||||
|
||||
if (this->eclState_->aquifer().hasNumericalAquifer()) {
|
||||
if (!num_aqu_cells.empty()) {
|
||||
const unsigned int global_index = cartesianIndex(elemIdx);
|
||||
const auto search = num_aqu_cells.find(global_index);
|
||||
if (search != num_aqu_cells.end()) {
|
||||
|
||||
@@ -341,7 +341,6 @@ protected:
|
||||
void createGrids_()
|
||||
{
|
||||
grid_.reset(new Dune::CpGrid());
|
||||
|
||||
grid_->processEclipseFormat(mpiRank == 0 ? &this->eclState().getInputGrid()
|
||||
: nullptr,
|
||||
/*isPeriodic=*/false,
|
||||
|
||||
@@ -1935,10 +1935,8 @@ private:
|
||||
using CellPos = typename PhaseSat::Position;
|
||||
using CellID = std::remove_cv_t<std::remove_reference_t<
|
||||
decltype(std::declval<CellPos>().cell)>>;
|
||||
// TODO: might not needed
|
||||
ElementMapper elemMapper(gridView, Dune::mcmgElementLayout());
|
||||
const auto num_aqu_cells = aquifer.allAquiferCells();
|
||||
this->cellLoop(cells, [this, &eqreg, &ptable, &elemMapper, &num_aqu_cells, &psat]
|
||||
this->cellLoop(cells, [this, &eqreg, &ptable, &num_aqu_cells, &psat]
|
||||
(const CellID cell,
|
||||
Details::PhaseQuantityValue& pressures,
|
||||
Details::PhaseQuantityValue& saturations,
|
||||
@@ -1964,7 +1962,6 @@ private:
|
||||
OpmLog::info(msg);
|
||||
|
||||
if (aqu_cell->init_pressure) {
|
||||
// TODO: NOT totally sure what we should do here to employ the pressure specified by AQUNUM
|
||||
const double pres = *(aqu_cell->init_pressure);
|
||||
pressures = {pres, pres, pres};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user