OPAL at UCL, maintained by Jan Lauber
THE UCL-OPAL code Instruction

Instructions on updating the OPAL code


We are currently running GORO22, meaning Gopal and Rope versions 22. Click here to find out what all this code is doing. More OPAL manuals can be found here. At least once a year the code gets updated and a new version released. Since the code at CERN runs on HP's we have to remake the libraries if we want the code to be usable over here on our Alphas. Here is what you need to do:

* Log in on ax8.hep.ucl.ac.uk as opal
* Make sure there is enough space on /local4, if not, remove the oldest version of the opal code in directory /rope/old or older
* create a new directory /local4/opal_code/rope/new/
* create a link to it from the ~/rope directory
* create the subdirectories /car,/cra,/lib,/mgrd and /temp
* copy the contents of /pro/mgrd to /new/mgrd
* ftp the cradles and card files from the equivalent directories at CERN. Log in to snopal and say whicho rope or whicho gopal to find out where they sit.
* The .cra files need a minor adjustment:
* +USE,HPUX. cards need to be replaced by +USE,QMALPH,DECS. This is where the temp directory comes in handy:
* for file in *.cra
> do
> sed s/+USE,HPUX./+USE,QMALPH,DECS. $file ../temp/$file
> done
* then mv the /temp directory to the /cra
* If the GOPAL version has been updated too, ftp the appropriate gopalxxx.cra and gopalxxx.car files to ~/gopal/pro (no new directory is necessary here)
* Now you have to set the propath to point at the new directories:
export propath=
'. /user/opal/rope/new/car /user/opal/rope/new/lib /user/opal/gopal/pro/car /user/opal/gopal/pro/lib /user/opal/geant/pro/car /user/opal/geant/pro/lib /user/opal/gen/pro/car /user/opal/gen/pro/lib /user/opal/pro/car /user/opal/pro/pam /user/opal/pro/lib /cern/pro/lib /cern/pro/car /cern/pro/src/car'
* Having done this you can start to generate the libraries by issuing a command in the .cra directory such as: makelib ba117 . . . makelib ww111
* Makelib executes ytofort which converts the PATCHY horror into fortran, compiles all the .f files and ftolib then puts it all in the library .a which gets mv'ed to the ../lib directory
* Do this for all 50-odd .cra files except the rope41x.cra, which needs special treatment.
* edit the mgrd/makeropelib file to update the rope version you'd like to compile (currently rope416).
* makeropelib rope41x, where x is that latest version number.
* cd ~/gopal/pro and say makelib gopalxxx to make the now GOPAL library
* Verify that you have a new .lib for every .cra
* Test it all, to make sure things worked out OK
* Eventually move /pro to /old and /new to /pro and /old to /sayonara
* . . . and the game can start all over again . . .
* Good luck

Last updated by Jan A. Lauber on 12 June 1998
and now in the capable hands of Paul J. Dervan

Questions to the above or any other OPAL related information you always wanted to know: mail me