StandardWell: make updatePrimaryVariablesNewton non-const

this will obviously modify well state
This commit is contained in:
Arne Morten Kvarving
2022-11-09 13:06:11 +01:00
parent 64112f76b3
commit 13af642fe4
2 changed files with 2 additions and 2 deletions

View File

@@ -355,7 +355,7 @@ namespace Opm
void updatePrimaryVariablesNewton(const BVectorWell& dwells,
const WellState& well_state,
DeferredLogger& deferred_logger) const;
DeferredLogger& deferred_logger);
void updateWellStateFromPrimaryVariables(WellState& well_state, DeferredLogger& deferred_logger) const;

View File

@@ -951,7 +951,7 @@ namespace Opm
StandardWell<TypeTag>::
updatePrimaryVariablesNewton(const BVectorWell& dwells,
const WellState& /* well_state */,
DeferredLogger& deferred_logger) const
DeferredLogger& deferred_logger)
{
const double dFLimit = this->param_.dwell_fraction_max_;
const double dBHPLimit = this->param_.dbhp_max_rel_;