Fix for communications clash; under review

This commit is contained in:
Hrvoje Jasak 2011-05-26 11:30:05 +01:00
parent 838a596129
commit 70602a21d8

View file

@ -1147,6 +1147,14 @@ void GlobalPointPatchField
// Reduce/extract the result and enforce over all processors
// Requires global sync points to flush buffers before gather-scatter
// communications. Reconsider. HJ, 29/Mar/2011
if (Pstream::defaultCommsType == Pstream::nonBlocking)
{
IPstream::waitRequests();
OPstream::waitRequests();
}
tmp<Field<scalar> > trpf =
reduceExtractPoint<scalar>(localMult);