ENH: polyPatch: split clearing of addressing from clearing of geometry

This commit is contained in:
mattijs
2014-07-07 11:41:43 +01:00
committed by Andrew Heather
parent e9a7c2baae
commit 2ba526869a

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -61,8 +61,8 @@ void Foam::polyPatch::movePoints(PstreamBuffers&, const pointField& p)
void Foam::polyPatch::updateMesh(PstreamBuffers&) void Foam::polyPatch::updateMesh(PstreamBuffers&)
{ {
primitivePatch::clearGeom();
clearAddressing(); clearAddressing();
primitivePatch::clearOut();
} }
@ -348,6 +348,8 @@ const Foam::labelList& Foam::polyPatch::meshEdges() const
void Foam::polyPatch::clearAddressing() void Foam::polyPatch::clearAddressing()
{ {
primitivePatch::clearTopology();
primitivePatch::clearPatchMeshAddr();
deleteDemandDrivenData(faceCellsPtr_); deleteDemandDrivenData(faceCellsPtr_);
deleteDemandDrivenData(mePtr_); deleteDemandDrivenData(mePtr_);
} }