mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 20:00:33 +05:00
missed waits
This commit is contained in:
parent
75504c3a6d
commit
8c1882226c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user