Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/repositories/OpenFOAM-dev

This commit is contained in:
Henry
2014-02-05 11:26:52 +00:00
2 changed files with 52 additions and 2 deletions

View File

@ -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,

View File

@ -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