LiveViz: Particle Exercise (Extension)

Figure 1

For this exercise, continue by building upon your work for the previous exercise. Add colour to emphasise the skew and watch the balancer work.

  1. Extend each chare to contain particles of three different colors. Each color should move at different speeds - green should move at the default speed, red should move twice as fast and green should move half as fast.
  2. Distribute colours to reproduce the imbalance as shown in the figure: reds bunched in the centre, greens in the upper-left, blues in the lower-right.
  3. Download the LiveViz client from GitHub. During link time, use the -module liveViz flag. Note that LiveViz will not work with multicore charm builds. For additional instructions refer to the documentation.
  4. Run your C++ code using ++server and ++server-port 1234, and then run the liveViz client using liveVize localhost 1234, and observe how the particles behave.