]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Wait for communication to finish. 15372/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 16 Jun 2023 16:01:16 +0000 (10:01 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 16 Jun 2023 16:32:46 +0000 (10:32 -0600)
source/grid/grid_tools.cc

index ef9414da49649c18b5f4ce007d6086c21b6e0ffa..75c0240007d2dbe17b11446e2dbfc7879c897576 100644 (file)
@@ -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(
@@ -3773,6 +3778,12 @@ namespace GridTools
               }
           }
       }
+
+    // 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);
 #endif
 
     return local_to_global_vertex_index;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.