Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
36fcd1cd
Commit
36fcd1cd
authored
16 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
binary read/write
parent
72325bfc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/meshTools/searchableSurface/distributedTriSurfaceMesh.C
+8
-8
8 additions, 8 deletions
src/meshTools/searchableSurface/distributedTriSurfaceMesh.C
src/meshTools/searchableSurface/distributedTriSurfaceMesh.H
+8
-2
8 additions, 2 deletions
src/meshTools/searchableSurface/distributedTriSurfaceMesh.H
with
16 additions
and
10 deletions
src/meshTools/searchableSurface/distributedTriSurfaceMesh.C
+
8
−
8
View file @
36fcd1cd
...
...
@@ -88,7 +88,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
const
point
&
start
,
const
point
&
end
,
DynamicList
<
Pair
<
point
>
>&
allSegments
,
DynamicList
<
segment
>&
allSegments
,
DynamicList
<
label
>&
allSegmentMap
,
List
<
DynamicList
<
label
>
>&
sendMap
)
const
...
...
@@ -117,7 +117,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
// << start << end << " on proc:" << procI << endl;
sendMap
[
procI
].
append
(
allSegments
.
size
());
allSegmentMap
.
append
(
segmentI
);
allSegments
.
append
(
Pair
<
poi
nt
>
(
start
,
end
));
allSegments
.
append
(
segme
nt
(
start
,
end
));
return
;
}
}
...
...
@@ -148,7 +148,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
// through proc.
sendMap
[
procI
].
append
(
allSegments
.
size
());
allSegmentMap
.
append
(
segmentI
);
allSegments
.
append
(
Pair
<
poi
nt
>
(
start
,
clipPt0
));
allSegments
.
append
(
segme
nt
(
start
,
clipPt0
));
}
}
else
if
(
bb
.
contains
(
end
))
...
...
@@ -163,7 +163,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
// << " at " << clipPt0 << endl;
sendMap
[
procI
].
append
(
allSegments
.
size
());
allSegmentMap
.
append
(
segmentI
);
allSegments
.
append
(
Pair
<
poi
nt
>
(
clipPt0
,
end
));
allSegments
.
append
(
segme
nt
(
clipPt0
,
end
));
}
}
else
...
...
@@ -184,7 +184,7 @@ void Foam::distributedTriSurfaceMesh::splitSegment
// proc.
sendMap
[
procI
].
append
(
allSegments
.
size
());
allSegmentMap
.
append
(
segmentI
);
allSegments
.
append
(
Pair
<
poi
nt
>
(
clipPt0
,
clipPt1
));
allSegments
.
append
(
segme
nt
(
clipPt0
,
clipPt1
));
}
}
}
...
...
@@ -199,7 +199,7 @@ Foam::distributedTriSurfaceMesh::constructSegments
const
pointField
&
start
,
const
pointField
&
end
,
List
<
Pair
<
point
>
>&
allSegments
,
List
<
segment
>&
allSegments
,
labelList
&
allSegmentMap
)
const
{
...
...
@@ -214,7 +214,7 @@ Foam::distributedTriSurfaceMesh::constructSegments
// in the correct bin.
// Segments to test
DynamicList
<
Pair
<
point
>
>
dynAllSegments
(
start
.
size
());
DynamicList
<
segment
>
dynAllSegments
(
start
.
size
());
// Original index of segment
DynamicList
<
label
>
dynAllSegmentMap
(
start
.
size
());
// Per processor indices into allSegments to send
...
...
@@ -364,7 +364,7 @@ void Foam::distributedTriSurfaceMesh::findLine
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Segments to test
List
<
Pair
<
point
>
>
allSegments
(
start
.
size
());
List
<
segment
>
allSegments
(
start
.
size
());
// Original index of segment
labelList
allSegmentMap
(
start
.
size
());
...
...
This diff is collapsed.
Click to expand it.
src/meshTools/searchableSurface/distributedTriSurfaceMesh.H
+
8
−
2
View file @
36fcd1cd
...
...
@@ -48,6 +48,12 @@ namespace Foam
class
mapDistribute
;
// Typedefs
typedef
Pair
<
point
>
segment
;
template
<
>
inline
bool
contiguous
<
segment
>
()
{
return
contiguous
<
point
>
();}
/*---------------------------------------------------------------------------*\
Class distributedTriSurfaceMesh Declaration
\*---------------------------------------------------------------------------*/
...
...
@@ -101,7 +107,7 @@ private:
const
point
&
start
,
const
point
&
end
,
DynamicList
<
Pair
<
point
>
>&
,
DynamicList
<
segment
>&
,
DynamicList
<
label
>&
,
List
<
DynamicList
<
label
>
>&
)
const
;
...
...
@@ -113,7 +119,7 @@ private:
const
pointField
&
start
,
const
pointField
&
end
,
List
<
Pair
<
point
>
>&
allSegments
,
List
<
segment
>&
allSegments
,
List
<
label
>&
allSegmentMap
)
const
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment