From 183a244169796914824dda30fa635149caee99ff Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Fri, 18 Dec 2015 10:39:57 +0000 Subject: [PATCH] Fixes #38. --- src/meshTools/meshSearch/meshSearch.C | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/meshTools/meshSearch/meshSearch.C b/src/meshTools/meshSearch/meshSearch.C index ac56d0474dd..76d4258e340 100644 --- a/src/meshTools/meshSearch/meshSearch.C +++ b/src/meshTools/meshSearch/meshSearch.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -502,7 +502,11 @@ Foam::meshSearch::meshSearch mesh_(mesh), cellDecompMode_(cellDecompMode) { - if (cellDecompMode_ == polyMesh::FACE_DIAG_TRIS) + if + ( + cellDecompMode_ == polyMesh::FACE_DIAG_TRIS + || cellDecompMode_ == polyMesh::CELL_TETS + ) { // Force construction of face diagonals (void)mesh.tetBasePtIs(); @@ -523,7 +527,11 @@ Foam::meshSearch::meshSearch { overallBbPtr_.reset(new treeBoundBox(bb)); - if (cellDecompMode_ == polyMesh::FACE_DIAG_TRIS) + if + ( + cellDecompMode_ == polyMesh::FACE_DIAG_TRIS + || cellDecompMode_ == polyMesh::CELL_TETS + ) { // Force construction of face diagonals (void)mesh.tetBasePtIs(); -- GitLab