From 16b0b942e9065e4f6809dda25d5a057b7a5cb17d Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 6 Feb 2024 10:11:57 +0100 Subject: [PATCH] BlackoilModel: rename ebosProblem to problem --- opm/simulators/flow/BlackoilModel.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/simulators/flow/BlackoilModel.hpp b/opm/simulators/flow/BlackoilModel.hpp index db882ed9f..1da14071f 100644 --- a/opm/simulators/flow/BlackoilModel.hpp +++ b/opm/simulators/flow/BlackoilModel.hpp @@ -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;