University of Virginia, Department of Computer Science
Programming the Swarm

// By Amir Azarbad, June 13/2003 {aa3w@cs.virginia.edu}
// Help File for GloMoSim Installation:

Downloading GloMoSim:

   URL: http://pcl.cs.ucla.edu/projects/glomosim

   1. Click on Obtaining New GloMoSim 2.0 (you must be on campus)
   2. Accept the agreement and enter your information for the mailing list
   3. Download the compressed Parsec and GloMoSim files.

Installing GloMoSim:

   1. Uncompress the Parsec file into a directory by using:
   tar xfz ../glomomosim-2.03.tar.gz

   2. Setup the PCC_DIRECTORY environmental variable by doing the following:
   bash-2.05b$ cd glomosim/glomosim-2.03
   bash-2.05b$ export PCC_DIRECTORY=`pwd`/parsec/redhat-7.2

   3. Add the following to your PATH:
   bash-2.05b$ cd glomosim/glomosim-2.03/parsec/redhat-7.2/bin/
   bash-2.05b$ export PATH=$PATH:`pwd`

   4. Test to make sure the environment and path operations were successful:
   bash-2.05b$ cd
   bash-2.05b$ pcc
   No input files.

   bash-2.05b$ echo $PCC_DIRECTORY
   ~/glomosim/glomosim-2.03/parsec

   bash-2.05b$ echo $PATH
   ~/glomosim/glomosim-2.03/parsec/redhat-7.2/bin

   5. Making Glomosim:

    In Unix:
    1.  Goto glomosim/main
    2.  Type make

    In Windows:
    1. Goto glomosim/main
    2. Type makent

Testing GloMoSim:

    1. Goto glomosim/bin 
    2. Type ./glomosim config.in and the following should occur:

    bash-2.05b$ ./glomosim config.in
    Node 0 (280.47, 212.84, 0.00).
    Node 1 (639.89, 179.14, 0.00).
    Node 2 (720.11, 198.10, 0.00).
    Node 3 (1211.61, 216.94, 0.00).
    Node 4 (1415.87, 23.07, 0.00).
    Node 5 (1980.56, 119.08, 0.00).
    Node 6 (214.29, 472.47, 0.00).
    Node 7 (636.93, 455.61, 0.00).
    Node 8 (985.39, 574.96, 0.00).
    Node 9 (1023.64, 484.49, 0.00).
    Node 10 (1347.87, 579.95, 0.00).
    Node 11 (1679.03, 336.79, 0.00).
    Node 12 (139.75, 784.63, 0.00).
    Node 13 (464.83, 683.71, 0.00).
    Node 14 (923.65, 866.15, 0.00).
    Node 15 (1223.03, 881.34, 0.00).
    Node 16 (1388.90, 964.63, 0.00).
    Node 17 (1809.16, 794.44, 0.00).
    Node 18 (177.97, 1028.42, 0.00).
    Node 19 (580.30, 1267.74, 0.00).
    Node 20 (769.29, 1162.97, 0.00).
    Node 21 (1042.99, 1290.77, 0.00).
    Node 22 (1401.51, 1066.71, 0.00).
    Node 23 (1795.00, 1273.56, 0.00).
    Node 24 (317.93, 1512.93, 0.00).
    Node 25 (454.05, 1483.83, 0.00).
    Node 26 (829.64, 1365.05, 0.00).
    Node 27 (1123.50, 1626.44, 0.00).
    Node 28 (1543.63, 1349.53, 0.00).
    Node 29 (1855.03, 1626.33, 0.00).
    Partition 1 (0 2) has range (0, 0) to (0, 0): 30 nodes
    Current Sim Time[s] =    0.000000000  Real Time[s] =    0  Completed  0%
    Current Sim Time[s] =    9.073651536  Real Time[s] =    0  Completed  1%
    Current Sim Time[s] =   18.014513152  Real Time[s] =    0  Completed  2%
    Current Sim Time[s] =   27.020748137  Real Time[s] =    0  Completed  3%
    Current Sim Time[s] =   36.042978755  Real Time[s] =    0  Completed  4%
    Current Sim Time[s] =   45.063988179  Real Time[s] =    0  Completed  5%
    .....
    Current Sim Time[s] =  855.030478574  Real Time[s] =    1  Completed 95%
    Current Sim Time[s] =  864.052366162  Real Time[s] =    1  Completed 96%
    Current Sim Time[s] =  873.064564290  Real Time[s] =    1  Completed 97%
    Current Sim Time[s] =  882.072024056  Real Time[s] =    1  Completed 98%
    Current Sim Time[s] =  891.081945395  Real Time[s] =    1  Completed 99%

    Execution time :   1.1201 sec
    Number of events (including timeouts) processed : 605409
    Number of messages processed : 4
    Number of context switches occurred : 12
    Number of Local NULL messages sent : 0
    Number of Remote NULL messages sent : 0
    Total Number of NULL messages sent : 0
    NULL messages / Regular messages : 0.000


// You are now ready to use GloMoSim.

// For more help, goto http://pcl.cs.ucla.edu/projects/glomosim