BlackoilModel: rename ebosProblem to problem

This commit is contained in:
Arne Morten Kvarving 2024-02-06 10:11:57 +01:00
parent dc798d0a24
commit 16b0b942e9

View File

@ -786,7 +786,7 @@ namespace Opm {
double pvSumLocal = 0.0;
double numAquiferPvSumLocal = 0.0;
const auto& model = simulator_.model();
const auto& ebosProblem = simulator_.problem();
const auto& problem = simulator_.problem();
const auto& residual = simulator_.model().linearizer().residual();
@ -802,7 +802,7 @@ namespace Opm {
const auto& intQuants = elemCtx.intensiveQuantities(/*spaceIdx=*/0, /*timeIdx=*/0);
const auto& fs = intQuants.fluidState();
const auto pvValue = ebosProblem.referencePorosity(cell_idx, /*timeIdx=*/0) *
const auto pvValue = problem.referencePorosity(cell_idx, /*timeIdx=*/0) *
model.dofTotalVolume(cell_idx);
pvSumLocal += pvValue;
@ -835,7 +835,7 @@ namespace Opm {
OPM_TIMEBLOCK(computeCnvErrorPv);
double errorPV{};
const auto& model = simulator_.model();
const auto& ebosProblem = simulator_.problem();
const auto& problem = simulator_.problem();
const auto& residual = simulator_.model().linearizer().residual();
const auto& gridView = simulator().gridView();
ElementContext elemCtx(simulator_);
@ -852,7 +852,7 @@ namespace Opm {
elemCtx.updatePrimaryStencil(elem);
// elemCtx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
const unsigned cell_idx = elemCtx.globalSpaceIndex(/*spaceIdx=*/0, /*timeIdx=*/0);
const double pvValue = ebosProblem.referencePorosity(cell_idx, /*timeIdx=*/0) * model.dofTotalVolume(cell_idx);
const double pvValue = problem.referencePorosity(cell_idx, /*timeIdx=*/0) * model.dofTotalVolume(cell_idx);
const auto& cellResidual = residual[cell_idx];
bool cnvViolated = false;