next up previous
Next: Declaring a simple Up: Lesson 6 -- Previous: Compiling and running

ninth.c in detail

The maximum number of particles is hardwired to 1000. We distribute particles equally amongst the nodes. The integer division

particle_number = MAX_PARTICLES / pool_size;
may drop a number of particles due to rounding.





Zdzislaw Meglicki
Tue Feb 28 15:07:51 EST 1995