source: trunk/LMDZ.PLUTO/util/compile @ 3559

Last change on this file since 3559 was 3376, checked in by afalco, 6 months ago

Pluto PCM: zrecast default file to compile. AF

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