From 34c1a8f33e097bcddf7f2c829be66960553a8a7a Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Wed, 26 Aug 2015 09:15:04 +0100
Subject: [PATCH] BUG: polyMesh: construct tetBasePtIs in parallel before any
 usage

---
 src/OpenFOAM/meshes/polyMesh/polyMesh.C |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C
index a8156d2..abc38d4 100644
--- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C
+++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C
@@ -1478,7 +1478,11 @@ Foam::label Foam::polyMesh::findCell
     const cellRepresentation decompMode
 ) const
 {
-    if (Pstream::parRun() && decompMode == FACEDIAGTETS)
+    if
+    (
+        Pstream::parRun()
+     && (decompMode == FACEDIAGTETS || decompMode == CELL_TETS)
+    )
     {
         // Force construction of face-diagonal decomposition before testing
         // for zero cells. If parallel running a local domain might have zero
-- 
1.7.10.4

