source: trunk/LMDZ.MARS/util/compile @ 386

Last change on this file since 386 was 386, checked in by aslmd, 13 years ago

MESOSCALE: minor changes on script.

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