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
2ecef2c7
Commit
2ecef2c7
authored
May 23, 2011
by
mattijs
Browse files
BUG: globalPoints: handling shared points on V-cyclics
parent
f206f572
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/globalMeshData/globalPoints.C
View file @
2ecef2c7
...
...
@@ -613,80 +613,83 @@ void Foam::globalPoints::receivePatchPoints
label
meshPointA
=
meshPoints
[
i
];
label
meshPointB
=
coupledMeshPoints
[
i
];
//Pout<< "Connection between point " << meshPointA
// << " at " << mesh_.points()[meshPointA]
// << " and " << meshPointB
// << " at " << mesh_.points()[meshPointB] << endl;
if
(
meshPointA
!=
meshPointB
)
{
//Pout<< "Connection between point " << meshPointA
// << " at " << mesh_.points()[meshPointA]
// << " and " << meshPointB
// << " at " << mesh_.points()[meshPointB] << endl;
label
localA
=
meshToLocalPoint
(
meshToPatchPoint
,
meshPointA
);
label
localB
=
meshToLocalPoint
(
meshToPatchPoint
,
meshPointB
);
label
localA
=
meshToLocalPoint
(
meshToPatchPoint
,
meshPointA
);
label
localB
=
meshToLocalPoint
(
meshToPatchPoint
,
meshPointB
);
// Do we have information on pointA?
Map
<
label
>::
iterator
procPointA
=
meshToProcPoint_
.
find
(
localA
);
// Do we have information on pointA?
Map
<
label
>::
iterator
procPointA
=
meshToProcPoint_
.
find
(
localA
);
labelPairList
infoA
;
if
(
procPointA
!=
meshToProcPoint_
.
end
())
{
infoA
=
addSendTransform
(
cycPatch
.
index
(),
procPoints_
[
procPointA
()]
);
}
labelPairList
infoA
;
if
(
procPointA
!=
meshToProcPoint_
.
end
())
{
infoA
=
addSendTransform
(
cycPatch
.
index
(),
procPoints_
[
procPointA
()]
);
}
// Same for info on pointB
Map
<
label
>::
iterator
procPointB
=
meshToProcPoint_
.
find
(
localB
);
// Same for info on pointB
Map
<
label
>::
iterator
procPointB
=
meshToProcPoint_
.
find
(
localB
);
labelPairList
infoB
;
if
(
procPointB
!=
meshToProcPoint_
.
end
())
{
infoB
=
addSendTransform
(
cycPatch
.
neighbPatchID
(),
procPoints_
[
procPointB
()]
);
}
labelPairList
infoB
;
if
(
procPointB
!=
meshToProcPoint_
.
end
())
{
infoB
=
addSendTransform
(
cycPatch
.
neighbPatchID
(),
procPoints_
[
procPointB
()]
);
}
if
(
infoA
.
size
())
{
if
(
mergeInfo
(
infoA
,
localB
))
if
(
infoA
.
size
())
{
//Pout<< " Combined info at point "
// << mesh_.points()[meshPointB]
// << " now " << endl;
//printProcPoints
//(
// patchToMeshPoint,
// procPoints_[meshToProcPoint_[localB]]
//);
changedPoints
.
insert
(
localB
);
if
(
mergeInfo
(
infoA
,
localB
))
{
//Pout<< " Combined info at point "
// << mesh_.points()[meshPointB]
// << " now " << endl;
//printProcPoints
//(
// patchToMeshPoint,
// procPoints_[meshToProcPoint_[localB]]
//);
changedPoints
.
insert
(
localB
);
}
}
}
if
(
infoB
.
size
())
{
if
(
mergeInfo
(
infoB
,
localA
))
if
(
infoB
.
size
())
{
//Pout<< " Combined info at point "
// << mesh_.points()[meshPointA]
// << " now " << endl;
//printProcPoints
//(
// patchToMeshPoint,
// procPoints_[meshToProcPoint_[localA]]
//);
changedPoints
.
insert
(
localA
);
if
(
mergeInfo
(
infoB
,
localA
))
{
//Pout<< " Combined info at point "
// << mesh_.points()[meshPointA]
// << " now " << endl;
//printProcPoints
//(
// patchToMeshPoint,
// procPoints_[meshToProcPoint_[localA]]
//);
changedPoints
.
insert
(
localA
);
}
}
}
}
...
...
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