missed waits

This commit is contained in:
Joachim Schoeberl 2024-12-01 17:19:45 +01:00
parent 75504c3a6d
commit 8c1882226c

View File

@ -1220,8 +1220,7 @@ namespace netgen
recvrequests[0] = comm.IBcast (nnames);
MyMPI_WaitAll (recvrequests);
*/
NgMPI_Requests requ;
requ += comm.IBcast (nnames);
comm.IBcast (nnames).Wait();
// cout << "nnames = " << FlatArray(nnames) << endl;
materials.SetSize(nnames[0]);
@ -1236,7 +1235,7 @@ namespace netgen
recvrequests[0] = comm.IBcast (name_sizes);
MyMPI_WaitAll (recvrequests);
*/
requ += comm.IBcast (name_sizes);
comm.IBcast (name_sizes).Wait();
int tot_size = 0;
for (int k = 0; k < tot_nn; k++) tot_size += name_sizes[k];
@ -1246,8 +1245,7 @@ namespace netgen
Array<char> compiled_names(tot_size);
// recvrequests[0] = comm.IBcast (compiled_names);
// MyMPI_WaitAll (recvrequests);
requ += comm.IBcast (compiled_names);
requ.WaitAll();
comm.IBcast (compiled_names).Wait();
tot_nn = tot_size = 0;
auto write_names = [&] (auto & array) {