remove StandardWell::updatePrimaryVariables

no need for the wrapper any longer as the implementation
is now in StandardWellPrimaryVariables.
This commit is contained in:
Arne Morten Kvarving 2022-11-09 11:28:23 +01:00
parent b5f5a24af6
commit ff26a9e001
3 changed files with 2 additions and 15 deletions

View File

@ -69,17 +69,6 @@ extendEval(const Eval& in) const
return out;
}
template<class FluidSystem, class Indices, class Scalar>
void
StandardWellEval<FluidSystem,Indices,Scalar>::
updatePrimaryVariables(const WellState& well_state, DeferredLogger& deferred_logger) const
{
if (!baseif_.isOperableAndSolvable() && !baseif_.wellIsStopped())
return;
this->primary_variables_.update(well_state, deferred_logger);
}
template<class FluidSystem, class Indices, class Scalar>
void
StandardWellEval<FluidSystem,Indices,Scalar>::

View File

@ -112,9 +112,6 @@ protected:
const int num_cells,
const bool has_polymermw);
void updatePrimaryVariables(const WellState& well_state,
DeferredLogger& deferred_logger) const;
void updateWellStateFromPrimaryVariables(WellState& well_state,
DeferredLogger& deferred_logger) const;

View File

@ -2030,9 +2030,10 @@ namespace Opm
StandardWell<TypeTag>::
updatePrimaryVariables(const WellState& well_state, DeferredLogger& deferred_logger) const
{
this->StdWellEval::updatePrimaryVariables(well_state, deferred_logger);
if (!this->isOperableAndSolvable() && !this->wellIsStopped()) return;
this->primary_variables_.update(well_state, deferred_logger);
// other primary variables related to polymer injection
if constexpr (Base::has_polymermw) {
if (this->isInjector()) {