mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3564 from totto82/moveCom
communicate before usage not after
This commit is contained in:
commit
1e547ff714
@ -1598,13 +1598,13 @@ forceShutWellByNameIfPredictionMode(const std::string& wellname,
|
||||
}
|
||||
}
|
||||
|
||||
// Communicate across processes if a well was shut.
|
||||
well_was_shut = comm_.max(well_was_shut);
|
||||
|
||||
// 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);
|
||||
|
||||
// Only log a message on the output rank.
|
||||
if (terminal_output_ && well_was_shut) {
|
||||
const std::string msg = "Well " + wellname
|
||||
|
Loading…
Reference in New Issue
Block a user