Merge pull request #5018 from blattms/parallel-well-fixes

[fix] Do parallel sums with int instead of bool.
This commit is contained in:
Bård Skaflestad
2023-11-23 16:24:36 +01:00
committed by GitHub

View File

@@ -1924,7 +1924,7 @@ namespace Opm {
}
}
changed_well_to_group = comm.sum(changed_well_to_group);
changed_well_to_group = comm.sum(static_cast<int>(changed_well_to_group));
if (changed_well_to_group) {
updateAndCommunicate(episodeIdx, iterationIdx, deferred_logger);
changed_well_group = true;
@@ -1939,7 +1939,7 @@ namespace Opm {
changed_well_individual = changed_well || changed_well_individual;
}
}
changed_well_individual = comm.sum(changed_well_individual);
changed_well_individual = comm.sum(static_cast<int>(changed_well_individual));
if (changed_well_individual) {
updateAndCommunicate(episodeIdx, iterationIdx, deferred_logger);
changed_well_group = true;