git.ucc.asn.au
/
matches
/
honours.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parallel Programming - Commit before I break everything
[matches/honours.git]
/
course
/
semester2
/
pprog
/
assignment0
/
nbody.c
diff --git
a/course/semester2/pprog/assignment0/nbody.c
b/course/semester2/pprog/assignment0/nbody.c
index
d23b134
..
d8153d7
100644
(file)
--- a/
course/semester2/pprog/assignment0/nbody.c
+++ b/
course/semester2/pprog/assignment0/nbody.c
@@
-327,9
+327,12
@@
void System_Step(System * system)
}
}
+
+ return;
//Check for collisions
//Note: Only allows for one collision per step
//Check for collisions
//Note: Only allows for one collision per step
+
for (unsigned a = 0; a < system->nMax; ++a)
{
if ((system->bodies+a)->exists == false || (system->bodies+a)->collided)
for (unsigned a = 0; a < system->nMax; ++a)
{
if ((system->bodies+a)->exists == false || (system->bodies+a)->collided)
UCC
git Repository :: git.ucc.asn.au