Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
boids
boids4
Commits
297acd81
Commit
297acd81
authored
Nov 11, 2015
by
Cassio Kirch
Browse files
checkLimits parallelizided.
parent
6595b33a
Changes
2
Hide whitespace changes
Inline
Side-by-side
main.c
View file @
297acd81
...
...
@@ -130,7 +130,6 @@ one_system ()
nextStep
(
parameters
);
for
(
boidCount
=
0
;
boidCount
<
N
;
boidCount
++
)
{
checkLimits
(
&
(
boids
[
boidCount
]));
boxID
=
getBoxID
(
boids
[
boidCount
]);
if
(
boids
[
boidCount
].
boxID
!=
boxID
)
{
...
...
nextstep.c
View file @
297acd81
...
...
@@ -169,7 +169,10 @@ callNextPositionThread (void* const input)
for
(
boidCount
=
parameters
->
left
;
boidCount
<
parameters
->
right
;
++
boidCount
)
setNextPosition
((
boids
+
boidCount
));
{
setNextPosition
(
boids
+
boidCount
);
checkLimits
(
boids
+
boidCount
);
}
return
NULL
;
}
...
...
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