# The following script can be used to compile one of the utilities # program. Example of use : # > compile concat # > compile zrecast # pgf sur les machines du LMD (ferme): #------------------------------------- #pgf95 -Bstatic $1.F90 \ #-I/distrib/local/netcdf/pgi_7.1-6_64/include \ #-L/distrib/local/netcdf/pgi_7.1-6_64/lib -lnetcdf -o $1.e # gfortran au LMD #---------------- gfortran $1.F90 \ -I/d2/emlmd/netcdf64-4.0.1_gfortran/include \ -L/d2/emlmd/netcdf64-4.0.1_gfortran/lib -lnetcdf -o $1.e # ifort #------ #ifort $1.F90 \ #-I$NETCDF/include \ #-L$NETCDF/lib -lnetcdf -o $1.e #----------------------------------------------------------------- # Before running that on you computer you might want to change : #----------------------------------------------------------------- # 1) replace "pgf90" with the name of your favorite compiler # (you may also add some non-agressive optimization options e.g. -O2) # 2) replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the # address of the # directory that contains the NetCDF library (file libnetcdf.a that can # be obtained for free on # http://www.unidata.ucar.edu/packages/netcdf/index.html # (see user manual) # # 3) Replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the address of the # directory that contains the NetCDF include file "netcdf.inc" # that can be obtained at the web address above. # # 4) The "-Bstatic" option is here to ensure that the executable will # work on any Linux machine (only necessary if you want to export the # executable from a machine to another).