Installation Instructions ------------------------- # $Id: INSTALL,v 1.5 2002/10/15 20:46:24 pletzer Exp $ From the top directory: cd src gmake clean; gmake all or gmake clean; gmake all [FORT=...] [INC=...] [LIB=...] [FFLAGS=...] where FORT is your f90 compiler (e.g. FORT=pgf90) INC points to the location of the netcdf.inc file (e.g. INC=-I/soft/include) LIB points to the location where netcdf resides (e.g. LIB=/soft/lib/libnetcdf.a) FFLAGS are your fortran compiler flags (e.g FFLAGS=-g) Examples: 1a) tern.pppl.gov: Linux with pgf90 compiler tern /s/tern/pletzer/ga/toray-ga/src > gmake clean; gmake all FORT=pgf90 rm *.o *mod toray rm: cannot remove `*.o': No such file or directory rm: cannot remove `*mod': No such file or directory rm: cannot remove `toray': No such file or directory gmake: *** [clean] Error 1 pgf90 -O -I/usr/local/include -c precision_mod.f90 real_mod.f90 precision_mod.f90: real_mod.f90: pgf90 -O -I/usr/local/include -c gafit.f90 pgf90 -O -I/usr/local/include -c gafit_lib.f90 pgf90 -O -I/usr/local/include -c getpsi.f90 pgf90 -O -I/usr/local/include -c lsode.f90 PGF90-W-0169-Multiple data initializations of common block ls0001 (lsode.f90) 0 inform, 1 warnings, 0 severes, 0 fatal for lsode_block_data PGF90-W-0169-Multiple data initializations of common block eh0001 (lsode.f90) 0 inform, 1 warnings, 0 severes, 0 fatal for xerrwv pgf90 -O -I/usr/local/include -c portlib.f90 pgf90 -O -I/usr/local/include -c real_impl.f90 pgf90 -O -I/usr/local/include -c toray.f90 pgf90 -O -I/usr/local/include -c torlib2.f90 pgf90 -O -I/usr/local/include -c torlib.f90 pgf90 -O -o toray gafit.o gafit_lib.o getpsi.o lsode.o portlib.o precision_mod.o real_impl.o real_mod.o toray.o torlib2.o torlib.o -L/usr/local/lib -lnetcdf 1b) tern.pppl.gov: Linux with lf95 compiler tern /s/tern/pletzer/ga/toray-ga/src > gmake clean; gmake all FORT=lf95 rm *.o *mod toray lf95 -O -I/usr/local/include -c precision_mod.f90 real_mod.f90 Compiling file precision_mod.f90. Encountered 0 errors, 0 warnings in file precision_mod.f90. Compiling file real_mod.f90. Encountered 0 errors, 0 warnings in file real_mod.f90. lf95 -O -I/usr/local/include -c gafit.f90 Encountered 0 errors, 0 warnings in file gafit.f90. lf95 -O -I/usr/local/include -c gafit_lib.f90 Encountered 0 errors, 0 warnings in file gafit_lib.f90. lf95 -O -I/usr/local/include -c getpsi.f90 Encountered 0 errors, 0 warnings in file getpsi.f90. lf95 -O -I/usr/local/include -c lsode.f90 8653-W: "lsode.f90", line 998: Element illin of common block cannot be initialized ex cept in a BLOCK DATA subprogram. 8653-W: "lsode.f90", line 998: Element ntrep of common block cannot be initialized ex cept in a BLOCK DATA subprogram. 8690-W: "lsode.f90", line 1580: In different program units, the named common block ls 0001 or the blank common block cannot be given initial values more than once. 8690-W: "lsode.f90", line 2727: In different program units, the named common block eh 0001 or the blank common block cannot be given initial values more than once. 8653-W: "lsode.f90", line 2729: Element mesflg of common block cannot be initialized except in a BLOCK DATA subprogram. 8653-W: "lsode.f90", line 2729: Element lunit of common block cannot be initialized e xcept in a BLOCK DATA subprogram. Encountered 0 errors, 6 warnings in file lsode.f90. lf95 -O -I/usr/local/include -c portlib.f90 8653-W: "portlib.f90", line 366: Element trace of common block cannot be initialized except in a BLOCK DATA subprogram. Encountered 0 errors, 1 warning in file portlib.f90. lf95 -O -I/usr/local/include -c real_impl.f90 Encountered 0 errors, 0 warnings in file real_impl.f90. lf95 -O -I/usr/local/include -c toray.f90 Encountered 0 errors, 0 warnings in file toray.f90. lf95 -O -I/usr/local/include -c torlib2.f90 Encountered 0 errors, 0 warnings in file torlib2.f90. lf95 -O -I/usr/local/include -c torlib.f90 Encountered 0 errors, 0 warnings in file torlib.f90. lf95 -O -o toray gafit.o gafit_lib.o getpsi.o lsode.o portlib.o precision_mod.o real_impl.o real_mod.o toray.o torlib2.o torlib.o -L/usr/local/lib -lnetcdf 2) taurus.pppl.gov: SunOS with native f90 compiler taurus /s/tern/pletzer/ga/toray-ga/src > gmake clean; gmake all rm *.o *mod toray rm: cannot remove `toray': No such file or directory gmake: *** [clean] Error 1 f90 -O -I/usr/local/include -c precision_mod.f90 real_mod.f90 precision_mod.f90: real_mod.f90: f90 -O -I/usr/local/include -c gafit.f90 f90 -O -I/usr/local/include -c gafit_lib.f90 f90 -O -I/usr/local/include -c getpsi.f90 f90 -O -I/usr/local/include -c lsode.f90 f90 -O -I/usr/local/include -c portlib.f90 f90 -O -I/usr/local/include -c real_impl.f90 f90 -O -I/usr/local/include -c toray.f90 erffac=rutpi*erfcb(0,dz,dzp,epar)/sqrt (epar) ^ "toray.f90", Line = 6300, Column = 28: WARNING: Procedure "ERFCB" is defined at line 5837 (toray.f90). Dummy argument "Z" is an array argument. This argume nt is scalar. ^ "toray.f90", Line = 6300, Column = 31: WARNING: Procedure "ERFCB" is defined at line 5837 (toray.f90). Dummy argument "ZP" is an array argument. This argum ent is scalar. erffac=rutpi*erfcb(0,dz,dzp,epar) ^ "toray.f90", Line = 6335, Column = 28: WARNING: Procedure "ERFCB" is defined at line 5837 (toray.f90). Dummy argument "Z" is an array argument. This argume nt is scalar. ^ "toray.f90", Line = 6335, Column = 31: WARNING: Procedure "ERFCB" is defined at line 5837 (toray.f90). Dummy argument "ZP" is an array argument. This argum ent is scalar. f90: COMPILE TIME 15.910000 SECONDS f90: MAXIMUM FIELD LENGTH 6893934 DECIMAL WORDS f90: 22724 SOURCE LINES f90: 0 ERRORS, 4 WARNINGS, 0 OTHER MESSAGES, 0 ANSI f90 -O -I/usr/local/include -c torlib.f90 f90 -O -I/usr/local/include -c torlib2.f90 f90 -O -o toray gafit.o gafit_lib.o getpsi.o lsode.o portlib.o precision_mod.o real_impl.o real_mod.o toray.o torlib.o torlib2.o -L/usr/local/lib -lnetcdf 3) neptune.pppl.gov: OSF1 V4.0 with native f90 compiler in debug mode neptune /s/tern/pletzer/ga/toray-ga/src > gmake clean; gmake all FFLAGS=-g rm *.o *mod toray rm: cannot remove `toray': (null) gmake: *** [clean] Error 1 f90 -g -I/usr/local/include -c precision_mod.f90 real_mod.f90 f90 -g -I/usr/local/include -c gafit.f90 f90 -g -I/usr/local/include -c gafit_lib.f90 f90 -g -I/usr/local/include -c getpsi.f90 f90 -g -I/usr/local/include -c lsode.f90 f90 -g -I/usr/local/include -c portlib.f90 f90 -g -I/usr/local/include -c real_impl.f90 f90 -g -I/usr/local/include -c toray.f90 f90: Info: toray.f90, line 9748: Symbol in BLOCK DATA program unit is not in a COMMON block. [I] integer i --------------^ f90: Info: toray.f90, line 9951: Symbol in BLOCK DATA program unit is not in a COMMON block. [I] integer i --------------^ f90 -g -I/usr/local/include -c torlib.f90 f90 -g -I/usr/local/include -c torlib2.f90 f90 -g -o toray gafit.o gafit_lib.o getpsi.o lsode.o portlib.o precision_mod.o real_impl.o real_mod.o toray.o torlib.o torlib2.o -L/usr/local/lib -lnetcdf 4) loki.pppl.gov: Linux on Alpha chip, compiler with fort: loki /s/tern/pletzer/ga/toray-ga/src > gmake clean; gmake all FORT=fort FFLAGS="-fast -convert big_endian" rm *.o *mod toray rm: cannot remove `toray': No such file or directory gmake: *** [clean] Error 1 fort -fast -convert big_endian -I/usr/local/include -c precision_mod.f90 real_mod.f90 fort: Info: Interprocedural optimization between source files is not possible with -c fort -fast -convert big_endian -I/usr/local/include -c gafit.f90 fort -fast -convert big_endian -I/usr/local/include -c gafit_lib.f90 fort -fast -convert big_endian -I/usr/local/include -c getpsi.f90 fort -fast -convert big_endian -I/usr/local/include -c lsode.f90 fort -fast -convert big_endian -I/usr/local/include -c portlib.f90 fort -fast -convert big_endian -I/usr/local/include -c real_impl.f90 fort -fast -convert big_endian -I/usr/local/include -c toray.f90 fort -fast -convert big_endian -I/usr/local/include -c torlib.f90 fort -fast -convert big_endian -I/usr/local/include -c torlib2.f90 fort -fast -convert big_endian -o toray gafit.o gafit_lib.o getpsi.o lsode.o portlib.o precision_mod.o real_impl.o real_mod.o toray.o torlib.o torlib2.o -L/usr/local/lib -lnetcdf 5) hydra.gat.com: HP-UX with native compiler: gmake clean ; gmake all FFLAGS="-O +U77 -w +check=all" *Note* Need +check=all or else code hangs at execution (?) and/or produces different results (??) gmake clean ; gmake all FFLAGS="+O2 -K +U77 +FPdiuOVZ +DA1.1 +DS1.1 -w" 6) hecate.princeton.edu: IRIX 6.5 with native compiler gmake clean; gmake all FFLAGS="-64 -O -C" INC="-I/scr0/karney/netcdf-3.4/src/fortran/" LIB=/scr0/karney/netcdf-3.4/src/libsrc/libnetcdf.a *Note* need -C option (array-bound checking) or else code hangs(?)