diff --git a/opm/autodiff/BlackoilModelBase.hpp b/opm/autodiff/BlackoilModelBase.hpp index 78818aade..348afc765 100644 --- a/opm/autodiff/BlackoilModelBase.hpp +++ b/opm/autodiff/BlackoilModelBase.hpp @@ -359,8 +359,8 @@ namespace Opm { void updateWellControls(WellState& xw) const; - void updateWellState(const V& dx, - WellState& well_state); + void updateWellState(const V& dwells, + WellState& well_state); bool getWellConvergence(const int iteration); diff --git a/opm/autodiff/BlackoilModelBase_impl.hpp b/opm/autodiff/BlackoilModelBase_impl.hpp index 2f7f3b3e9..b2f414243 100644 --- a/opm/autodiff/BlackoilModelBase_impl.hpp +++ b/opm/autodiff/BlackoilModelBase_impl.hpp @@ -1668,8 +1668,9 @@ namespace detail { template - void BlackoilModelBase::updateWellState(const V& dx, - WellState& well_state) + void + BlackoilModelBase::updateWellState(const V& dwells, + WellState& well_state) { if( wellsActive() ) @@ -1677,13 +1678,13 @@ namespace detail { const int np = wells().number_of_phases; const int nw = wellsActive() ? wells().number_of_wells : 0; - // Extract parts of dx corresponding to each part. + // Extract parts of dwells corresponding to each part. int varstart = 0; - const V dqs = subset(dx, Span(np*nw, 1, varstart)); + const V dqs = subset(dwells, Span(np*nw, 1, varstart)); varstart += dqs.size(); - const V dbhp = subset(dx, Span(nw, 1, varstart)); + const V dbhp = subset(dwells, Span(nw, 1, varstart)); varstart += dbhp.size(); - assert(varstart == dx.size()); + assert(varstart == dwells.size()); const double dpmaxrel = dpMaxRel();