BUG: processorFvPatchScalarField.C: use commsType as passed in

This commit is contained in:
mattijs
2012-01-31 12:33:05 +00:00
parent 3b6bb55bcf
commit 438aa8663c

View File

@ -45,11 +45,7 @@ void processorFvPatchField<scalar>::initInterfaceMatrixUpdate
{
this->patch().patchInternalField(psiInternal, scalarSendBuf_);
if
(
Pstream::defaultCommsType == Pstream::nonBlocking
&& !Pstream::floatTransfer
)
if (commsType == Pstream::nonBlocking && !Pstream::floatTransfer)
{
// Fast path.
if (debug && !this->ready())
@ -122,6 +118,7 @@ void processorFvPatchField<scalar>::updateInterfaceMatrix
{
UPstream::waitRequest(outstandingRecvRequest_);
}
// Recv finished so assume sending finished as well.
outstandingSendRequest_ = -1;
outstandingRecvRequest_ = -1;