Bugfix: comms barrier for AMG agglomeration with non-blocking communications

This commit is contained in:
Hrvoje Jasak 2019-11-20 10:08:18 +00:00
parent c5fa11371c
commit 196399ef6a

View file

@ -227,6 +227,11 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
} }
} }
if (Pstream::parRun())
{
Pstream::waitRequests();
}
// Store coefficients to avoid tangled communications // Store coefficients to avoid tangled communications
// HJ, 1/Apr/2009 // HJ, 1/Apr/2009
FieldField<Field, label> fineInterfaceAddr(fineInterfaces.size()); FieldField<Field, label> fineInterfaceAddr(fineInterfaces.size());
@ -253,11 +258,6 @@ void Foam::GAMGAgglomeration::agglomerateLduAddressing
} }
} }
if (Pstream::parRun())
{
Pstream::waitRequests();
}
// Add the coarse level // Add the coarse level
// Set the coarse ldu addressing onto the list // Set the coarse ldu addressing onto the list