Clean-up of default copy constructors for polyPatches - copy constructor needed

This commit is contained in:
Hrvoje Jasak 2018-10-18 19:18:19 +01:00
parent 284344a11e
commit d9e45cb58c
2 changed files with 35 additions and 20 deletions

View file

@ -96,19 +96,6 @@ Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
{}
Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
(
const passiveProcessorPolyPatch& pp,
const polyBoundaryMesh& bm
)
:
polyPatch(pp, bm),
myProcNo_(pp.myProcNo_),
neighbProcNo_(pp.neighbProcNo_),
globalFaceIndex_(pp.size(), -1)
{}
Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
(
const passiveProcessorPolyPatch& pp,
@ -125,6 +112,31 @@ Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
{}
Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
(
const passiveProcessorPolyPatch& pp
)
:
polyPatch(pp),
myProcNo_(pp.myProcNo_),
neighbProcNo_(pp.neighbProcNo_),
globalFaceIndex_(pp.size(), -1)
{}
Foam::passiveProcessorPolyPatch::passiveProcessorPolyPatch
(
const passiveProcessorPolyPatch& pp,
const polyBoundaryMesh& bm
)
:
polyPatch(pp, bm),
myProcNo_(pp.myProcNo_),
neighbProcNo_(pp.neighbProcNo_),
globalFaceIndex_(pp.size(), -1)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::passiveProcessorPolyPatch::~passiveProcessorPolyPatch()

View file

@ -99,13 +99,6 @@ public:
const polyBoundaryMesh&
);
//- Construct as copy, resetting the boundary mesh
passiveProcessorPolyPatch
(
const passiveProcessorPolyPatch&,
const polyBoundaryMesh&
);
//- Construct as given the original patch and resetting the
// face list and boundary mesh information
passiveProcessorPolyPatch
@ -117,6 +110,16 @@ public:
const label newStart
);
//- Construct as copy
passiveProcessorPolyPatch(const passiveProcessorPolyPatch&);
//- Construct as copy, resetting the boundary mesh
passiveProcessorPolyPatch
(
const passiveProcessorPolyPatch&,
const polyBoundaryMesh&
);
//- Construct and return a clone, resetting the boundary mesh
virtual autoPtr<polyPatch> clone(const polyBoundaryMesh& bm) const
{