How to run the SLAM simulation language on the Mathematics Network Leemis Fall, 1999 The SLAM simulation language package is available on the Unix machines on the mathematics network. Users can cd to /usr/slam or /usr/tess to access sample SLAM files. Set up (must be done once on your account only): 1. Edit the file named .cshrc in your main directory. Add /usr/lang to your path if it is not already there. Also, add the lines source /usr/slam/inslam source /usr/tess/t41/tcoms/intess source /usr/tess/t41/tcoms/lnprod setenv LD_LIBRARY_PATH /usr/lang/SC1.0 (in that order) to the .cshrc file after the command(s) that determine the path. 2. Type the Unix command: source .cshrc Each time a SLAM program is to be run 3. Create a FORTRAN main program and subroutines according to the rules given in the SLAM text. This file must have a .f suffix. Also, create a file that contains the SLAM input commands. This file must have a .dat suffix. To simplify this step the first time, copy an existing file from the /usr/slam directory. Here is one such procedure cd /usr/slam change to appropriate directory ls list files - look for those starting with exl cp exl.for ~/exl.f copy the fortran file to your main directory cp exld.dat ~/exld.dat copy slam input statements to main directory cp PARAM.INC ~/PARAM.INC copy INCLUDE definitions to main directory cd change back to home directory The main directory should now contain the FORTRAN file exl.f and the SLAM input file exld.dat. These are for a drive-up bank simulation that allows cars to jockey from one line to another. 4. Compile the FORTRAN file with the command f77 $SLAM_FOPTIONS exl.f There will be an additional (object code) file named exl.o. 5. Create a symbolic link with the command slink exlexe exl no There will be an additional file named exlexe. This command is slow. The slink command creates a HUGE executable file. Use the Unix commands ls -s and quota -v to delete the file with rm once you are done using this particular model. 6. Execute the SLAM model. There are two ways to do this. To execute immediately, type rslam exld exlexe and the output will appear on the screen. For a longer run, it might be wiser to run the simulation in the batch mode with the command rslamb exld exlexe After the model runs, the output will be contained in exld.out and a log file named islam.log will be created.