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

Last change on this file since 1980 was 1193, checked in by aslmd, 11 years ago

changed default symbolic links to ifort since we use mostly this compiler on clusters

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[137]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
[386]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
[137]9
[523]10#ifort $1.F90 \
[1193]11#pgf90 $1.F90 \
12ifort $1.F90 \
[386]13-I$NETCDF/include \
14-L$NETCDF/lib -lnetcdf -o $1.e
15
[137]16# Before running that on you computer you might want to change :
17# 1) replace "pgf90" with the name of your favorite compiler
[275]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
[137]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#
[275]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).
[137]33
34
35
36
Note: See TracBrowser for help on using the repository browser.