Commit 5722298f authored by mattijs's avatar mattijs
Browse files

no local segments

parent d01b1f44
...@@ -97,7 +97,11 @@ void Foam::distributedTriSurfaceMesh::splitSegment ...@@ -97,7 +97,11 @@ void Foam::distributedTriSurfaceMesh::splitSegment
point clipPt0, clipPt1; 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 // 2. Check if fully inside other processor. Rare occurrence
...@@ -109,9 +113,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment ...@@ -109,9 +113,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
{ {
const List<treeBoundBox>& bbs = procBb_[procI]; 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:" //Pout<< " Completely remote segment:"
// << start << end << " on proc:" << procI << endl; // << start << end << " on proc:" << procI << endl;
...@@ -122,7 +124,6 @@ void Foam::distributedTriSurfaceMesh::splitSegment ...@@ -122,7 +124,6 @@ void Foam::distributedTriSurfaceMesh::splitSegment
} }
} }
} }
}
// 3. Not contained in single processor. Clip against proc bbs. // 3. Not contained in single processor. Clip against proc bbs.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment