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.
- 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.
- 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.
-
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. -
Run your C++ code using
++server
and++server-port 1234
, and then run the liveViz client usingliveVize localhost 1234
, and observe how the particles behave.