Commit 466b3b19 authored by Cassio Kirch's avatar Cassio Kirch

Gamma != 0 for isolated cells

parent 9b39d1f5
...@@ -74,7 +74,7 @@ makeSum (struct Boid* const boid, const struct Boid* conductor, \ ...@@ -74,7 +74,7 @@ makeSum (struct Boid* const boid, const struct Boid* conductor, \
if(boid -> neighbors != 0u) if(boid -> neighbors != 0u)
boid -> gamma = (double)boid -> ectoNeighbors / boid -> neighbors; boid -> gamma = (double)boid -> ectoNeighbors / boid -> neighbors;
else else
boid -> gamma = 1000000.0 boid -> gamma = 1000000.0;
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment