diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index 63c94adaa..534f187c2 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -1565,8 +1565,6 @@ updateAndCommunicateGroupData(const int reportStepIdx, well_state.communicateGroupRates(comm_); this->groupState().communicate_rates(comm_); - // compute wsolvent fraction for REIN wells - updateWsolvent(fieldGroup, reportStepIdx, well_state_nupcol); } bool diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 5ce483a9e..c2eb8efca 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -1331,6 +1331,10 @@ namespace Opm { changed_well_individual = comm.sum(changed_well_individual); if (changed_well_individual) updateAndCommunicate(episodeIdx, iterationIdx, deferred_logger); + + // update wsolvent fraction for REIN wells + const Group& fieldGroup = schedule().getGroup("FIELD", episodeIdx); + updateWsolvent(fieldGroup, episodeIdx, this->nupcolWellState()); }