Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5722298f
Commit
5722298f
authored
Dec 02, 2008
by
mattijs
Browse files
no local segments
parent
d01b1f44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/searchableSurface/distributedTriSurfaceMesh.C
View file @
5722298f
...
...
@@ -97,7 +97,11 @@ void Foam::distributedTriSurfaceMesh::splitSegment
point
clipPt0
,
clipPt1
;
// 1. Fully local already handled outside
// 1. Fully local already handled outside. Note: retest is cheap.
if
(
isLocal
(
procBb_
[
Pstream
::
myProcNo
()],
start
,
end
))
{
return
;
}
// 2. Check if fully inside other processor. Rare occurrence
...
...
@@ -109,17 +113,14 @@ void Foam::distributedTriSurfaceMesh::splitSegment
{
const
List
<
treeBoundBox
>&
bbs
=
procBb_
[
procI
];
forAll
(
bbs
,
bbI
)
if
(
isLocal
(
bbs
,
start
,
end
)
)
{
if
(
bbs
[
bbI
].
contains
(
start
)
&&
bbs
[
bbI
].
contains
(
end
))
{
//Pout<< " Completely remote segment:"
// << start << end << " on proc:" << procI << endl;
sendMap
[
procI
].
append
(
allSegments
.
size
());
allSegmentMap
.
append
(
segmentI
);
allSegments
.
append
(
segment
(
start
,
end
));
return
;
}
//Pout<< " Completely remote segment:"
// << start << end << " on proc:" << procI << endl;
sendMap
[
procI
].
append
(
allSegments
.
size
());
allSegmentMap
.
append
(
segmentI
);
allSegments
.
append
(
segment
(
start
,
end
));
return
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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