Skip to content
Snippets Groups Projects
Commit 93b21ffe authored by Bouillaguet Charles's avatar Bouillaguet Charles
Browse files

bugfix in jean-zay code

parent f1a8111a
No related branches found
No related tags found
No related merge requests found
...@@ -203,6 +203,8 @@ void master() ...@@ -203,6 +203,8 @@ void master()
int active_ranks; int active_ranks;
int done = 0; int done = 0;
MPI_Comm_size(MPI_COMM_WORLD, &active_ranks); MPI_Comm_size(MPI_COMM_WORLD, &active_ranks);
active_ranks *= 2; /* because of the hack that runs two "threads" per MPI rank */
while (active_ranks > 0) { while (active_ranks > 0) {
MPI_Status status; MPI_Status status;
int msg; int msg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment