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
f1ee3d3d
Commit
f1ee3d3d
authored
Feb 08, 2010
by
mattijs
Browse files
BUG: mergePoints on mesh subset (e.g. patch) did not address points correctly.
parent
3eb95ac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C
View file @
f1ee3d3d
...
...
@@ -1741,7 +1741,7 @@ Foam::autoPtr<Foam::globalIndex> Foam::globalMeshData::mergePoints
}
}
label
myUniquePoints
=
meshPoints
.
size
()
+
nCoupledMaster
-
nCoupledSlave
;
label
myUniquePoints
=
meshPoints
.
size
()
-
nCoupledSlave
;
Pout
<<
"Points :"
<<
nl
<<
" patch : "
<<
meshPoints
.
size
()
<<
nl
...
...
@@ -1795,10 +1795,10 @@ Pout<< "Points :" << nl
if
(
slaves
.
size
()
>
0
)
{
// Duplicate master globalpoint into slave slots
masterToGlobal
[
coupledPointI
]
=
pointToGlobal
[
mesh
PointI
];
masterToGlobal
[
coupledPointI
]
=
pointToGlobal
[
local
PointI
];
forAll
(
slaves
,
i
)
{
masterToGlobal
[
slaves
[
i
]]
=
pointToGlobal
[
mesh
PointI
];
masterToGlobal
[
slaves
[
i
]]
=
pointToGlobal
[
local
PointI
];
}
}
}
...
...
@@ -1825,7 +1825,7 @@ Pout<< "Points :" << nl
if
(
slaves
.
size
()
==
0
)
{
pointToGlobal
[
mesh
PointI
]
=
masterToGlobal
[
coupledPointI
];
pointToGlobal
[
local
PointI
]
=
masterToGlobal
[
coupledPointI
];
}
}
}
...
...
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