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:
@@ -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
|
// the wellTesteState is updated between timesteps and we also need to update the privous WGstate
|
||||||
if(well_was_shut)
|
if(well_was_shut)
|
||||||
this->commitWGState();
|
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.
|
// Only log a message on the output rank.
|
||||||
if (terminal_output_ && well_was_shut) {
|
if (terminal_output_ && well_was_shut) {
|
||||||
const std::string msg = "Well " + wellname
|
const std::string msg = "Well " + wellname
|
||||||
|
|||||||
Reference in New Issue
Block a user