diff --git a/src/meshTools/meshSearch/meshSearch.C b/src/meshTools/meshSearch/meshSearch.C index ac56d0474ddb7ce8a5a5350e7693dff4325032d6..76d4258e3408f8f0e7f998e8f1207402eb728161 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();