diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 2a5e2605b..042b7d4c2 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -1924,7 +1924,7 @@ namespace Opm { } } - changed_well_to_group = comm.sum(changed_well_to_group); + changed_well_to_group = comm.sum(static_cast(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(changed_well_individual)); if (changed_well_individual) { updateAndCommunicate(episodeIdx, iterationIdx, deferred_logger); changed_well_group = true;