-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMake_ncdf.src
More file actions
47 lines (47 loc) · 1.94 KB
/
Make_ncdf.src
File metadata and controls
47 lines (47 loc) · 1.94 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# --- 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
# assume cray-netcdf and cray-hdf are already loaded
module list
setenv NCDFC ${NETCDF_DIR}
setenv NCDF ${NETCDF_DIR}
setenv HDF5 ${HDF5_DIR}
setenv EXTRANCDF "-L${NCDFC}/lib -L${NCDF}/lib -L${HDF5}/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"
#
# --- NOAA WCOSS-2 systems with ifort:
#module load envvar/1.0 intel/19.1.3.304 module load PrgEnv-intel/8.1.0 craype/2.7.10 netcdf/4.7.4
#setenv NCDFC /apps/prod/hpc-stack/intel-19.1.3.304/netcdf/4.7.4/
#setenv NCDF /apps/prod/hpc-stack/intel-19.1.3.304/netcdf/4.7.4/
#setenv EXTRANCDF `nf-config --flibs`
#
# --- 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`
#
# --- workstation, from nf-config with dummy NCDF and NCDFC
#setenv NCDFC ${HOME}/HYCOM-tools/lib
#setenv NCDF ${HOME}/HYCOM-tools/lib
#setenv EXTRANCDF "-L/usr/lib/x86_64-linux-gnu -lnetcdff -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -lnetcdf -lnetcdf -lm"