drop unnecessary wrapper StandardWell::updateExtraPrimaryVariables

This commit is contained in:
Arne Morten Kvarving 2022-11-09 12:33:36 +01:00
parent f64628f72d
commit 8e3121113c
2 changed files with 2 additions and 18 deletions

View File

@ -357,10 +357,6 @@ namespace Opm
const WellState& well_state,
DeferredLogger& deferred_logger) const;
// update extra primary vriables if there are any
void updateExtraPrimaryVariables(const BVectorWell& dwells) const;
void updateWellStateFromPrimaryVariables(WellState& well_state, DeferredLogger& deferred_logger) const;
virtual void assembleWellEqWithoutIteration(const Simulator& ebosSimulator,

View File

@ -959,24 +959,12 @@ namespace Opm
const double dBHPLimit = this->param_.dbhp_max_rel_;
this->primary_variables_.updateNewton(dwells, dFLimit, dBHPLimit);
updateExtraPrimaryVariables(dwells);
this->primary_variables_.checkFinite(deferred_logger);
}
template<typename TypeTag>
void
StandardWell<TypeTag>::
updateExtraPrimaryVariables(const BVectorWell& dwells) const
{
// for the water velocity and skin pressure
if constexpr (Base::has_polymermw) {
this->primary_variables_.updateNewtonPolyMW(dwells);
}
this->primary_variables_.checkFinite(deferred_logger);
}