From 438aa8663cb342bb092652af66d87b027325d8fc Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Tue, 31 Jan 2012 12:33:05 +0000
Subject: [PATCH] BUG: processorFvPatchScalarField.C: use commsType as passed
 in

---
 .../constraint/processor/processorFvPatchScalarField.C     | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchScalarField.C
index c15b1c1be7f..6fbb2150029 100644
--- a/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchScalarField.C
+++ b/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchScalarField.C
@@ -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;
 
-- 
GitLab