Skip to content

Commit

Permalink
Wait for communication to finish.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Jun 16, 2023
1 parent 1f266e5 commit 139257d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/grid/grid_tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3665,6 +3665,11 @@ namespace GridTools
AssertThrowMPI(ierr);
}

// At this point, wait for all of the isend operations to finish:
MPI_Waitall(first_requests.size(),
first_requests.data(),
MPI_STATUSES_IGNORE);


// Send second message
std::vector<std::vector<char>> cellids_send_buffers(
Expand Down Expand Up @@ -3775,6 +3780,12 @@ namespace GridTools
}
#endif

// At this point, wait for all of the isend operations of the second round
// to finish:
MPI_Waitall(second_requests.size(),
second_requests.data(),
MPI_STATUSES_IGNORE);

return local_to_global_vertex_index;
}

Expand Down

0 comments on commit 139257d

Please sign in to comment.