From 9dce59e9c45cd702f03a69781fad1be2110ce0a4 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 10 Aug 2012 09:59:53 +0100 Subject: [PATCH] ENH: Clear tet base pts and cell tree in polyMesh::updateMesh() --- src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C b/src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C index bba7367e8b..96dc726b44 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C @@ -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 @@ -31,6 +31,8 @@ Description #include "Time.H" #include "globalMeshData.H" #include "pointMesh.H" +#include "indexedOctree.H" +#include "treeDataCell.H" // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // @@ -44,6 +46,11 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm) faceZones_.clearAddressing(); cellZones_.clearAddressing(); + // Remove the stored tet base points + tetBasePtIsPtr_.clear(); + // Remove the cell tree + cellTreePtr_.clear(); + // Update parallel data if (globalMeshDataPtr_.valid()) {