source ~/.bashrc
# The following script can be used to compile one of the utilities
# program. Example of use :
# > compile concat
# > compile zrecast

# pgf90 -Bstatic   $1.F90 \
#-I/distrib/local/netcdf/pgi_7.1-6_32/include \
#-L/distrib/local/netcdf/pgi_7.1-6_32/lib -lnetcdf  -o $1.e

#pgf90 $1.F90 \
gfortran $1.F90 \
-I$NETCDF/include \
-L$NETCDF/lib -lnetcdff -o $1.e

# Before running that on you computer you might want to change :
# 1) replace "pgf90" with the name of your favorite compiler 
#    (you may also add some non-agressive optimization options e.g. -O2)
# 2) replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the
# address of the
# directory that contains the NetCDF library (file libnetcdf.a that can
# be obtained for free on
# http://www.unidata.ucar.edu/packages/netcdf/index.html
# (see user manual)
#
# 3) Replace "/distrib/local/netcdf/pgi_7.1-6_32/lib" with the address of the
# directory that contains the NetCDF  include file "netcdf.inc"
# that can be obtained at the web address above.
# 
# 4) The "-Bstatic" option is here to ensure that the executable will
# work on any Linux machine (only necessary if you want to export the
# executable from a machine to another).


#ifort zrecast.F90 \
#-I/donnees/emlmd/netcdf64-4.0.1_gfortran/include \
#-L/donnees/emlmd/netcdf64-4.0.1_gfortran/lib -lnetcdf -o zrecast.e

#ifort $1.F90 \
#-I/donnees/emlmd/netcdf64-4.0.1_ifort/include \
#-L/donnees/emlmd/netcdf64-4.0.1_ifort/lib -lnetcdf -o $1.e




#module purge
##module load comp-intel/2016.2.181
##module load comp-intel/2015.3.187 
#module load comp-intel/2018.0.128
#module load mpi-sgi/mpt.2.12r26
#module load hdf4/4.2.12
#module load hdf5/1.8.18_mpt
#module load netcdf/4.4.1.1_mpt
#module load szip/2.1.1

#ifort zrecast_plut.F90 \
#-I/nasa/netcdf/4.4.1.1_mpt/include \
#-L/nasa/netcdf/4.4.1.1_mpt/lib -lnetcdff -lnetcdf -o zrecast_plut.e

