Changes on the 7-layer TrimSP version for running on Unix/Linux and NT
Source code renamed to trimsp7l_tp.F (ok, ok, a bit egoistic...)
the capital .F extension is necessary to invoke the pre-compiler for handling #if defined... instructions. The output in the .rge files is slightly different for Win and Unix/Linux OS. For Win usually people are using Origin for reading the .rge files, therefore I kept the old output format for Win.
Replaced all non-standard f77 functions/procedures by f77 standard to compile it on Linux.
TMR already introduced implicit none instead of implicit variable declaration.
Use the ranlux random number generator from the CERN library. Requires mathlib to be linked to the program (standard Fortran77 contains a very bad random number generator, the ran(ix) function is DEC-Fortran)
Fix error in calculation of the Thomas-Fermi reduced energy. This led to wrong numbers in the output file but had no effect on the TRIMSP calculation.
Changes on datmak7l
source code renamed to datmak7l_tp.F (the capital F is important to invoke pre-compiler processing).
introduce pre-compiler instructions to distinguish between Win32 and Unix/Linux. In case of Win32 a DOS batch file is created. In case of Unix/Linux a c-shell script is generated (which must be set manually to executable at the moment: chmod a+x <Shell Script Name> before it can be run).
use implicit none variable declaration.
Prompting for random number generator seed disabled because TrimSP now uses ranlux which makes its own initialization.
Output on screen changed from german to english.
A formatted reading limited the number of particles to 999999 (at least with the f77 compiler on Linux). This is now (14-Jan-2003) corrected.
A Makefile is available (for Unix/Linux only at the moment) to compile and link the programs. Default location for the program is $HOME/bin. If this directory is included in the system's PATH variables the programs can be simply started without entering the directory.
Up to now, I didn't test it on Win32/Unix, only on RedHat Linux.
Installation on Linux:
define environment variable CVSROOT=/afs/psi.ch/project/nemu/cvsroot
go to your home directory and checkout the module trimsp: cvs checkout trimsp. The directory simulation/trimsp with subdirectories will be created. Goto simulation/trimsp/src and enter make to compile and link the program. It will create the executables in $HOME/bin. You need the libmathlib.a from the Cern library. Makefile expects it to be located in $CERN_ROOT/lib. If CERN_ROOT is not defined you may change the Makefile to point to the location of libmathlib.a on your system.
Include $HOME/bin into the $PATH variable.
The input files are in simulation/trimsp/work. Go to this directory to run datmak and the shell script created by datmak. For running the shell script you must change its mode manually to executable, chmod a+x <Shell script name>. After this you can start it with ./<Shell script name>.