mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: processorCyclic: added missing clone functions
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
|
||||||
@ -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
|
Foam::processorCyclicPolyPatch::processorCyclicPolyPatch
|
||||||
(
|
(
|
||||||
const processorCyclicPolyPatch& pp,
|
const processorCyclicPolyPatch& pp,
|
||||||
|
|||||||
@ -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
|
||||||
@ -145,6 +145,17 @@ public:
|
|||||||
//- Construct as given the original patch and resetting the
|
//- Construct as given the original patch and resetting the
|
||||||
// face list and boundary mesh information
|
// face list and boundary mesh information
|
||||||
processorCyclicPolyPatch
|
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 processorCyclicPolyPatch& pp,
|
||||||
const polyBoundaryMesh& bm,
|
const polyBoundaryMesh& bm,
|
||||||
@ -171,6 +182,29 @@ public:
|
|||||||
return autoPtr<polyPatch>(new processorCyclicPolyPatch(*this, bm));
|
return autoPtr<polyPatch>(new processorCyclicPolyPatch(*this, bm));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Construct and return a clone, resetting the face list
|
||||||
|
// and boundary mesh
|
||||||
|
virtual autoPtr<polyPatch> clone
|
||||||
|
(
|
||||||
|
const polyBoundaryMesh& bm,
|
||||||
|
const label index,
|
||||||
|
const label newSize,
|
||||||
|
const label newStart
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
return autoPtr<polyPatch>
|
||||||
|
(
|
||||||
|
new processorCyclicPolyPatch
|
||||||
|
(
|
||||||
|
*this,
|
||||||
|
bm,
|
||||||
|
index,
|
||||||
|
newSize,
|
||||||
|
newStart
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
//- Construct and return a clone, resetting the face list
|
//- Construct and return a clone, resetting the face list
|
||||||
// and boundary mesh
|
// and boundary mesh
|
||||||
virtual autoPtr<polyPatch> clone
|
virtual autoPtr<polyPatch> clone
|
||||||
|
|||||||
Reference in New Issue
Block a user