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
d73a8fa2
Commit
d73a8fa2
authored
Oct 31, 2015
by
Cassio Kirch
Browse files
Debug code commented.
parent
a30d44ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.c
View file @
d73a8fa2
...
...
@@ -37,12 +37,15 @@ getGamma (const struct Boid* const boids)
double
gamma
=
0
.
0
;
unsigned
int
boidCount
;
unsigned
int
endoBoids
=
(
unsigned
)(
ENDOPROP
*
N
);
// printf("EndoBoids: %u\n", endoBoids);
#ifdef ENDO_GAMMA
for
(
boidCount
=
endoBoids
;
boidCount
<
N
;
--
boidCount
)
/* Considering overflow. */
gamma
+=
boids
[
boidCount
].
gamma
;
#endif
// printf("BoidCount: %u\n", boidCount);
#ifdef ECTO_GAMMA
for
(
boidCount
=
endoBoids
+
1
;
boidCount
<
N
;
++
boidCount
)
...
...
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