source: trunk/LMDZ.GENERIC/utilities/compile @ 2890

Last change on this file since 2890 was 1513, checked in by mturbet, 9 years ago

New routine to extrapolate ice fields

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1# The following script can be used to compile one of the utilities
2# program. Example of use :
3# > compile streamfunction
4# > compile extrapol_icefield
5
6# pgf90 -Bstatic   $1.F90 \
7#-I/distrib/local/netcdf/pgi_7.1-6_32/include \
8#-L/distrib/local/netcdf/pgi_7.1-6_32/lib -lnetcdf  -o $1.e
9
10#ifort $1.F90 \
11#pgf90 $1.F90 \
12ifort $1.F90 \
13-I$NETCDF/include \
14-L$NETCDF/lib -lnetcdf -o $1.e
15
16# Before running that on you computer you might want to change :
17# 1) replace "pgf90" with the name of your favorite compiler
18#    (you may also add some non-agressive optimization options e.g. -O2)
19# 2) replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the
20# address of the
21# directory that contains the NetCDF library (file libnetcdf.a that can
22# be obtained for free on
23# http://www.unidata.ucar.edu/packages/netcdf/index.html
24# (see user manual)
25#
26# 3) Replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the address of the
27# directory that contains the NetCDF  include file "netcdf.inc"
28# that can be obtained at the web address above.
29#
30# 4) The "-Bstatic" option is here to ensure that the executable will
31# work on any Linux machine (only necessary if you want to export the
32# executable from a machine to another).
33
34
35
36
Note: See TracBrowser for help on using the repository browser.