#%Module######################################################################
##
##    NEMS FV3 Prerequisites: Cheyenne/Intel

proc ModulesHelp {} {
  puts stderr "\tcit - loads modules required for building and running FV3 under NEMS on Cheyenne/Intel"
}

module-whatis "loads NEMS FV3 prerequisites for Cheyenne/Intel"

# NOTE: the "module purge" and loading of the module command are
# handled by the module-setup.sh (or .csh) script.

##
## load programming environment
## this typically includes compiler, MPI and job scheduler
##
module load ncarenv/1.3
module load intel/19.0.2
module load mpt/2.19
module load ncarcompilers/0.5.0
module load netcdf/4.6.3

module use -a /glade/p/ral/jntp/GMTB/tools/modulefiles/intel-19.0.2/mpt-2.19

##
## use pre-compiled EMSF library for above compiler / MPI combination
##
module load esmf/8.0.0

##
## NCEP libraries (download and build manually for the time being; https://github.com/NCAR/NCEPlibs)
##
module load NCEPlibs/9.9.9

##
## SIONlib library
##
module load SIONlib/1.7.4

##
## set cmake compilers
##
setenv CMAKE_C_COMPILER mpicc
setenv CMAKE_CXX_COMPILER mpicxx
setenv CMAKE_Fortran_COMPILER mpif90
setenv CMAKE_Platform cheyenne.intel