2 # Setup script for the EXCITING Code
12 LIB_LPK
="lapack.a blas.a"
15 # get system type from user
19 echo "Choose system type:"
21 echo " 1. HP-UX, It2, HP Fortran 2. Linux, x86, Intel Fortran 7"
22 echo " 3. Linux, x86, Intel Fortran 8-10 4. Linux, x86, NAG Fortran"
23 echo " 5. Tru64, HP/Compaq Fortran 6. HP-UX, It2, HP Fortran, OpenMP"
24 echo " 7. AIX, XL Fortran 8. Linux, x86, g95"
25 echo " 9. Linux, x86, PGI 10. Fujitsu VPP"
26 echo "11. Hitachi SR8000 12. IBM AIX, RISC6000"
27 echo "13. SGI Origin 2000/3000 14. SUN workstations"
28 echo "15. Cray-T3E 16. OSX, G4/5, Absoft Fortran"
29 echo "17. OSX, G4/5, NAG Fortran 18. Linux, x86, GFortran"
31 echo " o. Other x. Exit"
34 if [ "$SYS" = x
] ; then
36 elif [ "$SYS" = o
] ; then
37 echo "Enter Fortran 90 compiler command:"
39 echo "Enter Fortran 90 compiler options:"
41 echo "Enter Fortran 77 compiler command:"
43 echo "Enter Fortran 77 compiler options:"
45 elif [ "$SYS" = 1 ] ; then
47 F90_OPTS
="+Ofast +DD64"
50 elif [ "$SYS" = 2 ] ; then
52 F90_OPTS
="-O3 -ip -unroll -prefetch -scalar_rep -w90"
55 elif [ "$SYS" = 3 ] ; then
57 F90_OPTS
="-O3 -ip -unroll -prefetch -scalar_rep -w90"
60 elif [ "$SYS" = 4 ] ; then
62 F90_OPTS
="-O4 -kind=byte -dusty -dcfuns"
65 elif [ "$SYS" = 5 ] ; then
70 elif [ "$SYS" = 6 ] ; then
72 F90_OPTS
="+Ofast +Oopenmp +DD64"
75 elif [ "$SYS" = 7 ] ; then
80 elif [ "$SYS" = 8 ] ; then
82 F90_OPTS
="-O3 -funroll-loops -ffast-math"
85 elif [ "$SYS" = 9 ] ; then
90 elif [ "$SYS" = 10 ] ; then
95 elif [ "$SYS" = 11 ] ; then
98 elif [ "$SYS" = 12 ] ; then
100 F90_OPTS
="-O3 -qsuffix=f=f90 -qfree=f90"
103 elif [ "$SYS" = 13 ] ; then
105 F90_OPTS
="-mips4 -64 -O2"
108 elif [ "$SYS" = 14 ] ; then
110 F90_OPTS
="-fast -dalign"
113 elif [ "$SYS" = 15 ] ; then
118 elif [ "$SYS" = 16 ] ; then
123 elif [ "$SYS" = 17 ] ; then
125 F90_OPTS
="-O4 -kind=byte -dusty -dcfuns"
128 elif [ "$SYS" = 18 ] ; then
130 F90_OPTS
="-O3 -funroll-loops -ffast-math"
140 # produce the make.inc file
141 echo "MAKE = $MAKE" > make.inc
142 echo "F90 = $F90" >> make.inc
143 echo "F90_OPTS = $F90_OPTS" >> make.inc
144 echo "F77 = $F77" >> make.inc
145 echo "F77_OPTS = $F77_OPTS" >> make.inc
146 echo "AR = $AR" >> make.inc
147 echo "LIB_SYS = $LIB_SYS" >> make.inc
148 echo "LIB_LPK = $LIB_LPK" >> make.inc
149 echo "LIB_FFT = $LIB_FFT" >> make.inc
152 echo "You can now edit the compiler options in \"make.inc\" for optimal"
153 echo "performance on your system as well as enabling OpenMP parallelisation."
155 echo "Then run \"make\" to compile code."