diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C index 137339e631..927c0e80b7 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -98,6 +98,22 @@ Foam::processorCyclicPolyPatch::processorCyclicPolyPatch {} +Foam::processorCyclicPolyPatch::processorCyclicPolyPatch +( + const processorCyclicPolyPatch& pp, + const polyBoundaryMesh& bm, + const label index, + const label newSize, + const label newStart +) +: + processorPolyPatch(pp, bm, index, newSize, newStart), + referPatchName_(pp.referPatchName_), + tag_(pp.tag()), + referPatchID_(-1) +{} + + Foam::processorCyclicPolyPatch::processorCyclicPolyPatch ( const processorCyclicPolyPatch& pp, diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H index 76a833ba61..2bfc2c9830 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processorCyclic/processorCyclicPolyPatch.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -145,6 +145,17 @@ public: //- Construct as given the original patch and resetting the // face list and boundary mesh information processorCyclicPolyPatch + ( + const processorCyclicPolyPatch& pp, + const polyBoundaryMesh& bm, + const label index, + const label newSize, + const label newStart + ); + + //- Construct as given the original patch and resetting the + // face list, boundary mesh information and referPatch + processorCyclicPolyPatch ( const processorCyclicPolyPatch& pp, const polyBoundaryMesh& bm, @@ -171,6 +182,29 @@ public: return autoPtr(new processorCyclicPolyPatch(*this, bm)); } + //- Construct and return a clone, resetting the face list + // and boundary mesh + virtual autoPtr clone + ( + const polyBoundaryMesh& bm, + const label index, + const label newSize, + const label newStart + ) const + { + return autoPtr + ( + new processorCyclicPolyPatch + ( + *this, + bm, + index, + newSize, + newStart + ) + ); + } + //- Construct and return a clone, resetting the face list // and boundary mesh virtual autoPtr clone