mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: PatchTools: merge using non-local points/faces
This commit is contained in:
@ -254,8 +254,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
//- Gather points and faces onto master and merge (geometrically) into
|
||||
// single patch.
|
||||
//- Gather points and faces onto master and merge into single patch.
|
||||
// Note: uses faces/points, not localFaces/localPoints.
|
||||
template
|
||||
<
|
||||
class Face,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -52,7 +52,8 @@ void Foam::PatchTools::gatherAndMerge
|
||||
labelList pointSizes;
|
||||
{
|
||||
List<Field<PointType> > gatheredPoints(Pstream::nProcs());
|
||||
gatheredPoints[Pstream::myProcNo()] = p.localPoints();
|
||||
gatheredPoints[Pstream::myProcNo()] = p.points();
|
||||
|
||||
Pstream::gatherList(gatheredPoints);
|
||||
|
||||
if (Pstream::master())
|
||||
@ -75,7 +76,7 @@ void Foam::PatchTools::gatherAndMerge
|
||||
// gathered points
|
||||
{
|
||||
List<List<Face> > gatheredFaces(Pstream::nProcs());
|
||||
gatheredFaces[Pstream::myProcNo()] = p.localFaces();
|
||||
gatheredFaces[Pstream::myProcNo()] = p;
|
||||
Pstream::gatherList(gatheredFaces);
|
||||
|
||||
if (Pstream::master())
|
||||
|
||||
Reference in New Issue
Block a user