diff --git a/application/adamantine.hh b/application/adamantine.hh index 38078636..74ed7481 100644 --- a/application/adamantine.hh +++ b/application/adamantine.hh @@ -1250,7 +1250,8 @@ void split_global_communicator(MPI_Comm global_communicator, "Number of MPI ranks should be less than the number of ensemble " "members or a multiple of this number."); // Assign color - my_color = global_rank / avg_n_procs_per_member; + my_color = + global_rank / static_cast(std::floor(avg_n_procs_per_member)); first_local_member = my_color; }