From 17555ea489e1bfa7056b12b26ae2f8cc560d5160 Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Tue, 26 Mar 2013 12:31:33 +0000
Subject: [PATCH] BUG: Corrected cyclic proc patch tag creation

---
 .../constraint/processorCyclic/processorCyclicPolyPatch.C   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C
index 7e45266d241..137339e631e 100644
--- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C
+++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C
@@ -150,13 +150,13 @@ int Foam::processorCyclicPolyPatch::tag() const
             referPatch()
         );
 
-        if (cycPatch.owner())
+        if (owner())
         {
-            tag_ = Hash<word>()(cycPatch.name());
+            tag_ = Hash<word>()(cycPatch.name()) % 32768u;
         }
         else
         {
-            tag_ = Hash<word>()(cycPatch.neighbPatch().name());
+            tag_ = Hash<word>()(cycPatch.neighbPatch().name()) % 32768u;
         }
 
         if (tag_ == Pstream::msgType() || tag_ == -1)
-- 
GitLab