#%Module1.0
######################################################################
##                                                       Russ.Treadon@noaa.gov
##                                                           NOAA/NWS/NCEP/EMC
## GDAS_ENKF v6.2.3
##_____________________________________________________
proc ModulesHelp { } {
puts stderr "Set environment veriables for GDAS_ENKF"
puts stderr "This module initializes the environment "
puts stderr "for the Intel Compiler Suite $version\n"
}
module-whatis " GDAS_ENKF whatis description"

set ver v6.2.3

setenv COMP ftn
setenv COMP_MP ftn
setenv COMP_MPI ftn

setenv C_COMP cc
setenv C_COMP_MP cc

set COMPILER intel

setenv FFLAGS_COM "-fp-model strict"
setenv LDFLAGS_COM " "

#set WRF_SHARED_VER v1.1.0
#set WRF_SHARED_ROOT /gpfs/hps/nco/ops/nwprod/wrf_shared
#set WRF_SHARED_ROOT /lustre/f1/pdata/ncep_shared/NCEPLIBS/lib/EXTERNAL/wrf_shared
#setenv WRF_SHARED_PATH ${WRF_SHARED_ROOT}.${WRF_SHARED_VER}

# Known conflicts
setenv NCEPLIBS /lustre/f1/pdata/ncep_shared/NCEPLIBS/lib

# Loading ncep environment
##module load ncep/1.0
module use /opt/cray/pe/craype/2.5.5/modulefiles

# Loading Intel Compiler Suite
module load PrgEnv-intel

# Loading pe environment
module load cray-mpich
module load cray-libsci
module unload craype-broadwell
module load craype-haswell

module use /sw/gaea/modulefiles
module load cmake

# Loading nceplibs modules
module use /lustre/f1/pdata/ncep_shared/NCEPLIBS/lib/modulefiles 
#module load HDF5-serial-intel-haswell/1.8.9
#module load NetCDF-intel-haswell/4.2
module load cray-hdf5
module load cray-netcdf

#module use /gpfs/hps/nco/ops/nwprod/lib/modulefiles
module load bufr-intel-sandybridge/11.0.1
module load nemsio-intel-sandybridge/2.2.2
module load sfcio-intel-sandybridge/1.0.0
module load sigio-intel-sandybridge/2.0.1
module load sp-intel-sandybridge/2.0.2
module load w3nco-intel-sandybridge/2.0.6
module load w3emc-intel-sandybridge/2.2.0
module load crtm-intel/2.2.4
#setenv CRTM_INC /lustre/f1/pdata/ncep_shared/NCEPLIBS/lib/crtm/v2.2.4/intel/include/crtm_v2.2.4
#setenv CRTM_LIB /lustre/f1/pdata/ncep_shared/NCEPLIBS/lib/crtm/v2.2.4/intel/libcrtm_v2.2.4.a 
module load bacio-intel-sandybridge/2.0.2
setenv CRAYOS_VERSION $::env(CRAYPE_VERSION)
#setenv CRAYOS_VERSION ${CRAYPE_VERSION}