forked from HYCOM/HYCOM-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Make_ncdf.src
34 lines (34 loc) · 1.23 KB
/
Make_ncdf.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# --- set NCDFC to the root directory for netCDF version 4.3.
# --- set NCDF to the root directory for netCDF version 4.3 Fortran.
# --- available from: http://www.unidata.ucar.edu/packages/netcdf/
#
# --- Use EXTRANCDF for the libraries needed for NCDF v4.3 or later
# --- This almost always includes netcdf and netcdff
#
# --- Note that the Fortran 90 routines and module files are required.
#
# --- Cray systems, with ftn = ifort
# module unload cray-netcdf
# module load cray-netcdf/4.4.0
# module list
# setenv NCDFC ${NETCDF_DIR}
# setenv NCDF ${NETCDF_DIR}
# setenv EXTRANCDF "-L${NCDFC}/lib -L${NCDF}/lib -lnetcdf -lnetcdff"
#
# --- DoD HPC systems with ifort:
module load costinit
module unload netcdf-c
module load netcdf-c/intel/4.3.3.1
module unload netcdf-fortran
module load netcdf-fortran/intel/4.4.2
module list
setenv NCDFC ${NETCDFC_HOME}
setenv NCDF ${NETCDFFORTRAN_HOME}
setenv EXTRANCDF "-L${NCDFC}/lib -L${NCDF}/lib -lnetcdf -lnetcdff"
#
# --- NASA NCCS systems with mpiifort:
# module load comp/intel/2021.3.0 mpi/impi/2021.3.0 netcdf4/4.8.1-parallel
# setenv NCDFC /usr/local/other/netcdf4/4.8.1/intel/2021.3.0/
# setenv NCDF /usr/local/other/netcdf4/4.8.1/intel/2021.3.0/
# setenv EXTRANCDF `nf-config --flibs`