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 {