makre sure network_changed synchronized across the processes

This commit is contained in:
Kai Bao 2022-08-19 11:26:35 +02:00 committed by Atgeirr Flø Rasmussen
parent cc15b29372
commit de4473bbd8

View File

@ -1479,7 +1479,8 @@ namespace Opm {
const auto& comm = ebosSimulator_.vanguard().grid().comm();
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;