Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
52b11e11
Commit
52b11e11
authored
Apr 02, 2013
by
mattijs
Browse files
ENH: PatchTools: merge using non-local points/faces
parent
50c820c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchTools.H
View file @
52b11e11
...
...
@@ -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
,
...
...
src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsGatherAndMerge.C
View file @
52b11e11
...
...
@@ -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
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment