Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
KennethVanhoey
CGoGN
Commits
1e13a811
Commit
1e13a811
authored
Aug 24, 2012
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not traverse boundary in parallel_foreach
parent
294c2fa3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/Algo/Geometry/centroid.hpp
include/Algo/Geometry/centroid.hpp
+1
-1
include/Algo/Parallel/parallel_foreach.hpp
include/Algo/Parallel/parallel_foreach.hpp
+4
-4
No files found.
include/Algo/Geometry/centroid.hpp
View file @
1e13a811
...
...
@@ -164,7 +164,7 @@ void computeCentroidFaces(typename PFP::MAP& map,
const
FunctorSelect
&
select
,
unsigned
int
nbth
,
unsigned
int
current_thread
)
{
FunctorComputeCentroidFaces
<
PFP
>
funct
(
map
,
position
,
face_centroid
);
Algo
::
Parallel
::
foreach_cell
<
typename
PFP
::
MAP
,
FACE
>
(
map
,
funct
,
true
,
nbth
,
false
,
select
,
current_thread
);
Algo
::
Parallel
::
foreach_cell
<
typename
PFP
::
MAP
,
FACE
>
(
map
,
funct
,
nbth
,
false
,
select
,
current_thread
);
}
...
...
include/Algo/Parallel/parallel_foreach.hpp
View file @
1e13a811
...
...
@@ -205,7 +205,7 @@ void foreach_cell(MAP& map, std::vector<FunctorMapThreaded<MAP>*>& funcs, unsign
unsigned
int
nb
=
0
;
while
((
d
!=
map
.
end
())
&&
(
nb
<
nbth
*
SIZE_BUFFER_THREAD
)
)
{
if
(
good
(
d
)
&&
(
!
cmark
->
isMarked
(
d
)))
if
(
good
(
d
)
&&
(
!
map
.
isBoundaryMarked
(
d
))
&&
(
!
cmark
->
isMarked
(
d
)))
{
cmark
->
mark
(
d
);
vd
[
nb
%
nbth
].
push_back
(
d
);
...
...
@@ -221,7 +221,7 @@ void foreach_cell(MAP& map, std::vector<FunctorMapThreaded<MAP>*>& funcs, unsign
unsigned
int
nb
=
0
;
while
((
d
!=
map
.
end
())
&&
(
nb
<
nbth
*
SIZE_BUFFER_THREAD
)
)
{
if
(
good
(
d
)
&&
(
!
dmark
->
isMarked
(
d
)))
if
(
good
(
d
)
&&
(
!
map
.
isBoundaryMarked
(
d
))
&&
(
!
dmark
->
isMarked
(
d
)))
{
dmark
->
markOrbit
<
ORBIT
>
(
d
);
vd
[
nb
%
nbth
].
push_back
(
d
);
...
...
@@ -285,7 +285,7 @@ void foreach_cell(MAP& map, std::vector<FunctorMapThreaded<MAP>*>& funcs, unsign
unsigned
int
nb
=
0
;
while
((
d
!=
map
.
end
())
&&
(
nb
<
nbth
*
SIZE_BUFFER_THREAD
)
)
{
if
(
good
(
d
)
&&
(
!
cmark
->
isMarked
(
d
)))
if
(
good
(
d
)
&&
(
!
map
.
isBoundaryMarked
(
d
))
&&
(
!
cmark
->
isMarked
(
d
)))
{
cmark
->
mark
(
d
);
tempo
[
nb
%
nbth
].
push_back
(
d
);
...
...
@@ -308,7 +308,7 @@ void foreach_cell(MAP& map, std::vector<FunctorMapThreaded<MAP>*>& funcs, unsign
unsigned
int
nb
=
0
;
while
((
d
!=
map
.
end
())
&&
(
nb
<
nbth
*
SIZE_BUFFER_THREAD
)
)
{
if
(
good
(
d
)
&&
(
!
dmark
->
isMarked
(
d
)))
if
(
good
(
d
)
&&
(
!
map
.
isBoundaryMarked
(
d
))
&&
(
!
dmark
->
isMarked
(
d
)))
{
dmark
->
markOrbit
<
ORBIT
>
(
d
);
tempo
[
nb
%
nbth
].
push_back
(
d
);
...
...
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