mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 15:40:09 -05:00
Remove unneeded ElementContext-based overloads.
This commit is contained in:
1 parent
3fa77ced96
commit
043f286381
1 file changed
-34
@@ -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 <class ...Args>
|
||||
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();
|
||||
|
||||
Reference in new issue
Block a user