updateWsolvent only after well container is created

This commit is contained in:
Tor Harald Sandve 2021-09-24 12:09:02 +02:00
parent 95e64e86f6
commit 9381b0857b
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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());
}