makre sure network_changed synchronized across the processes

This commit is contained in:
Kai Bao
2022-09-28 10:44:42 +02:00
committed by Atgeirr Flø Rasmussen
parent cc15b29372
commit de4473bbd8
@@ -1479,7 +1479,8 @@ namespace Opm {
const auto& comm = ebosSimulator_.vanguard().grid().comm(); const auto& comm = ebosSimulator_.vanguard().grid().comm();
updateAndCommunicateGroupData(episodeIdx, iterationIdx); updateAndCommunicateGroupData(episodeIdx, iterationIdx);
const bool network_changed = updateNetworkPressures(episodeIdx); const bool local_network_changed = updateNetworkPressures(episodeIdx);
const bool network_changed = comm.sum(local_network_changed);
std::set<std::string> switched_wells; std::set<std::string> switched_wells;