mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5018 from blattms/parallel-well-fixes
[fix] Do parallel sums with int instead of bool.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user