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

Last change on this file since 2394 was 2394, checked in by cmathe, 4 years ago

improvedco2clouds_mod: clean

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