From 2ba526869a714f2da1b47f2df1c0b182902f66d5 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 7 Jul 2014 11:41:43 +0100 Subject: [PATCH] ENH: polyPatch: split clearing of addressing from clearing of geometry --- .../meshes/polyMesh/polyPatches/polyPatch/polyPatch.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.C index 643e06a479..d7508c3d94 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -61,8 +61,8 @@ void Foam::polyPatch::movePoints(PstreamBuffers&, const pointField& p) void Foam::polyPatch::updateMesh(PstreamBuffers&) { + primitivePatch::clearGeom(); clearAddressing(); - primitivePatch::clearOut(); } @@ -348,6 +348,8 @@ const Foam::labelList& Foam::polyPatch::meshEdges() const void Foam::polyPatch::clearAddressing() { + primitivePatch::clearTopology(); + primitivePatch::clearPatchMeshAddr(); deleteDemandDrivenData(faceCellsPtr_); deleteDemandDrivenData(mePtr_); }