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

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

LMDZ.MARS and MESOSCALE: various minor improvements of workflow. no particularly interesting stuff. the only thing to note is that makegcm is renamed makegcm_pgf to be clearer.

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