mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: meshSearch: force early construction of face diagonals
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -508,7 +508,13 @@ Foam::meshSearch::meshSearch
|
||||
:
|
||||
mesh_(mesh),
|
||||
cellDecompMode_(cellDecompMode)
|
||||
{}
|
||||
{
|
||||
if (cellDecompMode_ == polyMesh::FACEDIAGTETS)
|
||||
{
|
||||
// Force construction of face diagonals
|
||||
(void)mesh.tetBasePtIs();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Construct with a custom bounding box
|
||||
@ -523,6 +529,12 @@ Foam::meshSearch::meshSearch
|
||||
cellDecompMode_(cellDecompMode)
|
||||
{
|
||||
overallBbPtr_.reset(new treeBoundBox(bb));
|
||||
|
||||
if (cellDecompMode_ == polyMesh::FACEDIAGTETS)
|
||||
{
|
||||
// Force construction of face diagonals
|
||||
(void)mesh.tetBasePtIs();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user