From 293d651331c6b010c79211f04382ea0ee23dda92 Mon Sep 17 00:00:00 2001 From: laurence Date: Wed, 12 Dec 2012 11:08:47 +0000 Subject: [PATCH] BUG: coupledPolyPatch: Make transform virtual so that it can be overriden by processorCyclicPolyPatch --- .../polyPatches/basic/coupled/coupledPolyPatch.H | 4 ++-- .../processorCyclic/processorCyclicPolyPatch.H | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H b/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H index ebbd2ce062..0208dacb47 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/basic/coupled/coupledPolyPatch.H @@ -254,7 +254,7 @@ public: } //- Type of transform - transformType transform() const + virtual transformType transform() const { return transform_; } @@ -262,7 +262,7 @@ public: //- Type of transform // This is currently only for use when collapsing generated // meshes that can have zero area faces. - transformType& transform() + virtual transformType& transform() { return transform_; } diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H index 44aece8919..fa59414586 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H @@ -275,6 +275,20 @@ public: return referPatch().owner(); } + //- Type of transform + virtual transformType transform() const + { + return referPatch().transform(); + } + + //- Type of transform + // This is currently only for use when collapsing generated + // meshes that can have zero area faces. + virtual transformType& transform() + { + return const_cast(referPatch()).transform(); + } + //- Transform a patch-based position from other side to this side virtual void transformPosition(pointField& l) const {