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
9b39d1f5
Commit
9b39d1f5
authored
Oct 23, 2015
by
Cassio Kirch
Browse files
Gamma != 0 for isolated cells
parent
d2006f7b
Changes
1
Show whitespace changes
Inline
Side-by-side
nextstep.c
View file @
9b39d1f5
...
...
@@ -71,8 +71,10 @@ makeSum (struct Boid* const boid, const struct Boid* conductor, \
}
conductor
=
conductor
->
next
;
}
if
(
boid
->
neighbors
!=
0
)
boid
->
gamma
=
(
double
)
boid
->
ectoNeighbors
/
boid
->
neighbors
;
if
(
boid
->
neighbors
!=
0u
)
boid
->
gamma
=
(
double
)
boid
->
ectoNeighbors
/
boid
->
neighbors
;
else
boid
->
gamma
=
1000000
.
0
}
void
...
...
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