mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
commit WGstate after shut well from outside
This commit is contained in:
@@ -1588,6 +1588,10 @@ forceShutWellByNameIfPredictionMode(const std::string& wellname,
|
||||
}
|
||||
}
|
||||
|
||||
// the wellTesteState is updated between timesteps and we also need to update the privous WGstate
|
||||
if(well_was_shut)
|
||||
this->commitWGState();
|
||||
|
||||
// Communicate across processes if a well was shut.
|
||||
well_was_shut = comm_.max(well_was_shut);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user