source: trunk/LMDZ.PLUTO/util/compile

Last change on this file was 3834, checked in by afalco, 4 weeks ago

Pluto: fix for zrecast, reading phisfi when phisinit unavailable.
AF

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1source ~/.bashrc
2SOURCE=${1:-zrecast}
3# The following script can be used to compile one of the utilities
4# program. Example of use :
5# > compile concat
6# > compile zrecast
7
8# pgf90 -Bstatic   $SOURCE.F90 \
9#-I/distrib/local/netcdf/pgi_7.1-6_32/include \
10#-L/distrib/local/netcdf/pgi_7.1-6_32/lib -lnetcdf  -o $SOURCE.e
11
12FLAGS=
13# FLAGS="-g -O0"
14
15#pgf90 $SOURCE.F90 \
16gfortran $FLAGS $SOURCE.F90 \
17-I$NETCDF/include \
18-L$NETCDF/lib -lnetcdff -o $SOURCE.e
19
20# Before running that on you computer you might want to change :
21# 1) replace "pgf90" with the name of your favorite compiler
22#    (you may also add some non-agressive optimization options e.g. -O2)
23# 2) replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the
24# address of the
25# directory that contains the NetCDF library (file libnetcdf.a that can
26# be obtained for free on
27# http://www.unidata.ucar.edu/packages/netcdf/index.html
28# (see user manual)
29#
30# 3) Replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the address of the
31# directory that contains the NetCDF  include file "netcdf.inc"
32# that can be obtained at the web address above.
33#
34# 4) The "-Bstatic" option is here to ensure that the executable will
35# work on any Linux machine (only necessary if you want to export the
36# executable from a machine to another).
37
38
39#ifort zrecast.F90 \
40#-I/donnees/emlmd/netcdf64-4.0.1_gfortran/include \
41#-L/donnees/emlmd/netcdf64-4.0.1_gfortran/lib -lnetcdf -o zrecast.e
42
43#ifort $SOURCE.F90 \
44#-I/donnees/emlmd/netcdf64-4.0.1_ifort/include \
45#-L/donnees/emlmd/netcdf64-4.0.1_ifort/lib -lnetcdf -o $SOURCE.e
46
47
48
49
50#module purge
51##module load comp-intel/2016.2.181
52##module load comp-intel/2015.3.187
53#module load comp-intel/2018.0.128
54#module load mpi-sgi/mpt.2.12r26
55#module load hdf4/4.2.12
56#module load hdf5/1.8.18_mpt
57#module load netcdf/4.4.1.1_mpt
58#module load szip/2.1.1
59
60#ifort zrecast_plut.F90 \
61#-I/nasa/netcdf/4.4.1.1_mpt/include \
62#-L/nasa/netcdf/4.4.1.1_mpt/lib -lnetcdff -lnetcdf -o zrecast_plut.e
63
Note: See TracBrowser for help on using the repository browser.