From 043f2863818e16e90e12759f8103d97b72c04d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 31 Jul 2025 11:38:06 +0200 Subject: [PATCH] Remove unneeded ElementContext-based overloads. --- .../blackoil/blackoilintensivequantities.hh | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/opm/models/blackoil/blackoilintensivequantities.hh b/opm/models/blackoil/blackoilintensivequantities.hh index 5407e22413..1e139e5759 100644 --- a/opm/models/blackoil/blackoilintensivequantities.hh +++ b/opm/models/blackoil/blackoilintensivequantities.hh @@ -178,17 +178,6 @@ public: BlackOilIntensiveQuantities& operator=(const BlackOilIntensiveQuantities& other) = default; - void updateTempSalt(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx) - { - if constexpr (enableTemperature || enableEnergy) { - asImp_().updateTemperature_(elemCtx, dofIdx, timeIdx); - } - - if constexpr (enableBrine) { - asImp_().updateSaltConcentration_(elemCtx, dofIdx, timeIdx); - } - } - void updateTempSalt(const Problem& problem, const PrimaryVariables& priVars, const unsigned globalSpaceIdx, @@ -204,13 +193,6 @@ public: } } - void updateSaturations(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx) - { - const auto& priVars = elemCtx.primaryVars(dofIdx, timeIdx); - const LinearizationType lintype = elemCtx.problem().model().linearizer().getLinearizationType(); - this->updateSaturations(priVars, timeIdx, lintype); - } - void updateSaturations(const PrimaryVariables& priVars, const unsigned timeIdx, [[maybe_unused]] const LinearizationType lintype) @@ -282,14 +264,6 @@ public: } } - void updateRelpermAndPressures(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx) - { - const auto& problem = elemCtx.problem(); - const auto& priVars = elemCtx.primaryVars(dofIdx, timeIdx); - const unsigned globalSpaceIdx = elemCtx.globalSpaceIndex(dofIdx, timeIdx); - this->updateRelpermAndPressures(problem, priVars, globalSpaceIdx, timeIdx, elemCtx.linearizationType()); - } - template void updateRelpermAndPressures(const Problem& problem, const PrimaryVariables& priVars, @@ -369,14 +343,6 @@ public: } } - void updateRsRvRsw(const ElementContext& elemCtx, unsigned dofIdx, unsigned timeIdx) - { - const auto& problem = elemCtx.problem(); - const auto& priVars = elemCtx.primaryVars(dofIdx, timeIdx); - const unsigned globalSpaceIdx = elemCtx.globalSpaceIndex(dofIdx, timeIdx); - this->updateRsRvRsw(problem, priVars, globalSpaceIdx, timeIdx); - } - void updateRsRvRsw(const Problem& problem, const PrimaryVariables& priVars, const unsigned globalSpaceIdx, const unsigned timeIdx) { const unsigned pvtRegionIdx = priVars.pvtRegionIndex();