mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: polyPatch: split clearing of addressing from clearing of geometry
This commit is contained in:
@ -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_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user