From 91dca0eb2f1a03f8187551d145b782b169f78522 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 2 Jul 2012 15:31:01 +0100 Subject: [PATCH] ENH: polyPatch: make clearing of geometry virtual --- .../meshes/polyMesh/polyPatches/polyPatch/polyPatch.C | 8 +++++++- .../meshes/polyMesh/polyPatches/polyPatch/polyPatch.H | 7 +++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.C index 711461d352b..e22381b7dd6 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 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -65,6 +65,12 @@ void Foam::polyPatch::updateMesh(PstreamBuffers&) } +void Foam::polyPatch::clearGeom() +{ + primitivePatch::clearGeom(); +} + + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::polyPatch::polyPatch diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.H b/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.H index 0fa859bddba..dd06c031950 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.H +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/polyPatch/polyPatch.H @@ -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 @@ -116,6 +116,9 @@ protected: //- Update of the patch topology virtual void updateMesh(PstreamBuffers&); + //- Clear geometry + virtual void clearGeom(); + public: @@ -338,7 +341,7 @@ public: const labelList& meshEdges() const; //- Clear addressing - void clearAddressing(); + virtual void clearAddressing(); // Other patch operations -- GitLab