Commit 297acd81 authored by Cassio Kirch's avatar Cassio Kirch

checkLimits parallelizided.

parent 6595b33a
...@@ -130,7 +130,6 @@ one_system () ...@@ -130,7 +130,6 @@ one_system ()
nextStep(parameters); nextStep(parameters);
for (boidCount=0; boidCount<N; boidCount++) for (boidCount=0; boidCount<N; boidCount++)
{ {
checkLimits(&(boids[boidCount]));
boxID = getBoxID(boids[boidCount]); boxID = getBoxID(boids[boidCount]);
if (boids[boidCount].boxID != boxID) if (boids[boidCount].boxID != boxID)
{ {
......
...@@ -169,7 +169,10 @@ callNextPositionThread (void* const input) ...@@ -169,7 +169,10 @@ callNextPositionThread (void* const input)
for (boidCount = parameters -> left; for (boidCount = parameters -> left;
boidCount < parameters -> right; ++boidCount) boidCount < parameters -> right; ++boidCount)
setNextPosition ((boids + boidCount)); {
setNextPosition (boids + boidCount);
checkLimits(boids + boidCount);
}
return NULL; return NULL;
} }
......
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