| 1 | # The following script can be used to compile one of the utilities | 
|---|
| 2 | # program. Example of use : | 
|---|
| 3 | # > compile concat | 
|---|
| 4 | # > compile zrecast | 
|---|
| 5 |  | 
|---|
| 6 | # pgf sur les machines du LMD (ferme): | 
|---|
| 7 | #------------------------------------- | 
|---|
| 8 | #pgf95 -Bstatic $1.F90 \ | 
|---|
| 9 | #-I/distrib/local/netcdf/pgi_7.1-6_64/include \ | 
|---|
| 10 | #-L/distrib/local/netcdf/pgi_7.1-6_64/lib -lnetcdf -o $1.e | 
|---|
| 11 |  | 
|---|
| 12 | # gfortran au LMD | 
|---|
| 13 | #---------------- | 
|---|
| 14 | gfortran $1.F90 \ | 
|---|
| 15 | -I/d2/emlmd/netcdf64-4.0.1_gfortran/include \ | 
|---|
| 16 | -L/d2/emlmd/netcdf64-4.0.1_gfortran/lib -lnetcdf -o $1.e | 
|---|
| 17 |  | 
|---|
| 18 | # ifort | 
|---|
| 19 | #------ | 
|---|
| 20 | #ifort $1.F90 \ | 
|---|
| 21 | #-I$NETCDF/include \ | 
|---|
| 22 | #-L$NETCDF/lib -lnetcdf -o $1.e | 
|---|
| 23 |  | 
|---|
| 24 | #----------------------------------------------------------------- | 
|---|
| 25 | # Before running that on you computer you might want to change : | 
|---|
| 26 | #----------------------------------------------------------------- | 
|---|
| 27 | # 1) replace "pgf90" with the name of your favorite compiler  | 
|---|
| 28 | #    (you may also add some non-agressive optimization options e.g. -O2) | 
|---|
| 29 | # 2) replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the | 
|---|
| 30 | # address of the | 
|---|
| 31 | # directory that contains the NetCDF library (file libnetcdf.a that can | 
|---|
| 32 | # be obtained for free on | 
|---|
| 33 | # http://www.unidata.ucar.edu/packages/netcdf/index.html | 
|---|
| 34 | # (see user manual) | 
|---|
| 35 | # | 
|---|
| 36 | # 3) Replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the address of the | 
|---|
| 37 | # directory that contains the NetCDF  include file "netcdf.inc" | 
|---|
| 38 | # that can be obtained at the web address above. | 
|---|
| 39 | #  | 
|---|
| 40 | # 4) The "-Bstatic" option is here to ensure that the executable will | 
|---|
| 41 | # work on any Linux machine (only necessary if you want to export the | 
|---|
| 42 | # executable from a machine to another). | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
| 45 |  | 
|---|
| 46 |  | 
|---|