mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-01 17:03:06 -06:00
dont update group data before the well container is created
This commit is contained in:
1 parent
6b3f14684d
commit
76a8e267b6
1 file changed
+8
-4
@@ -365,10 +365,7 @@ namespace Opm {
|
||||
this->resetWGState();
|
||||
|
||||
const int reportStepIdx = simulator_.episodeIndex();
|
||||
this->updateAndCommunicateGroupData(reportStepIdx,
|
||||
simulator_.model().newtonMethod().numIterations(),
|
||||
param_.nupcol_group_rate_tolerance_, /*update_wellgrouptarget*/ false,
|
||||
local_deferredLogger);
|
||||
|
||||
|
||||
this->wellState().updateWellsDefaultALQ(this->schedule(), reportStepIdx, this->summaryState());
|
||||
this->wellState().gliftTimeStepInit();
|
||||
@@ -382,6 +379,13 @@ namespace Opm {
|
||||
// create the well container
|
||||
createWellContainer(reportStepIdx);
|
||||
|
||||
// we need to update the group data after the well is created
|
||||
// to make sure we get the correct mapping.
|
||||
this->updateAndCommunicateGroupData(reportStepIdx,
|
||||
simulator_.model().newtonMethod().numIterations(),
|
||||
param_.nupcol_group_rate_tolerance_, /*update_wellgrouptarget*/ false,
|
||||
local_deferredLogger);
|
||||
|
||||
// Wells are active if they are active wells on at least one process.
|
||||
const Grid& grid = simulator_.vanguard().grid();
|
||||
this->wells_active_ = grid.comm().max(!this->well_container_.empty());
|
||||
|
||||
Reference in new issue
Block a user