Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Jan 30, 2024
1 parent 8b24c36 commit b074925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/adamantine.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(std::floor(avg_n_procs_per_member));

first_local_member = my_color;
}
Expand Down

0 comments on commit b074925

Please sign in to comment.