Skip to content

Commit

Permalink
Merge pull request #111 from DavidHuber-NOAA/upd_jet
Browse files Browse the repository at this point in the history
Update Jet support
  • Loading branch information
malloryprow committed Mar 14, 2023
2 parents 5dcb84a + c1377eb commit ec6c8ff
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 23 deletions.
59 changes: 59 additions & 0 deletions modulefiles/emc_verif_global_jet.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
help([[
Load environment to run EMC_verif-global on Jet using Intel
]])

hpss_ver=os.getenv("hpss_ver") or ""
load(pathJoin("hpss", hpss_ver))

prepend_path("MODULEPATH", "/mnt/lfs4/HFIP/hfv3gfs/role.epic/hpc-stack/libs/intel-2022.1.2/modulefiles/stack")

hpc_ver=os.getenv("hpc_ver") or "1.2.0"
load(pathJoin("hpc", hpc_ver))

hpc_intel_ver=os.getenv("hpc_intel_ver") or "2022.1.2"
load(pathJoin("hpc-intel", hpc_intel_ver))

hpc_impi_ver=os.getenv("hpc_impi_ver") or "2022.1.2"
load(pathJoin("hpc-impi", impi_ver))

hdf5_ver=os.getenv("hdf5_ver") or "1.10.6"
load(pathJoin("hdf5", hdf5_ver))

netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"
load(pathJoin("netcdf", netcdf_ver))

nco_ver=os.getenv("nco_ver") or "4.9.1"
load(pathJoin("nco", nco_ver))

wgrib2_ver=os.getenv("wgrib2_ver") or "2.0.8"
load(pathJoin("wgrib2", wgrib2_ver))

prod_util_ver=os.getenv("prod_util_ver") or "1.2.2"
load(pathJoin("prod_util", prod_util_ver))

grib_util_ver=os.getenv("grib_util_ver") or "1.2.4"
load(pathJoin("grib_util", grib_util_ver))

grads_ver=os.getenv("grads_ver") or "2.2.1"
load(pathJoin("grads", grads_ver))

prepend_path("MODULEPATH", "/mnt/lfs4/HFIP/hfv3gfs/role.epic/miniconda3/modulefiles")
miniconda3_ver=os.getenv("miniconda3_ver") or "4.12.0"
load(pathJoin("miniconda3", miniconda3_ver))

-- activate ufswm on load, deactivate on unload
if (mode() == "load") then
local load_cmd = "conda activate ufswm"
execute{cmd=load_cmd, modeA={"load"}}
else
if (mode() == "unload") then
local unload_cmd = "conda deactivate"
execute{cmd=unload_cmd, modeA={"unload"}}
end
end

met_ver=os.getenv("met_ver") or "9.1.3"
load(pathJoin("met", met_ver))

metplus_ver=os.getenv("metplus_ver") or "3.1.1"
load(pathJoin("metplus", metplus_ver))
25 changes: 2 additions & 23 deletions ush/load_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ elif [ $machine = S4 ]; then
module load miniconda/3.8-s4
module load grads/2.2.1
if [ $MET_version = 9.1 ]; then
module use /data/prod/glopara/contrib/MET/modulefiles
module load met/9.1
export HOMEMET="/data/prod/glopara/contrib/MET/met-9.1.3"
export HOMEMET_bin_exec="bin"
else
Expand All @@ -125,35 +123,16 @@ elif [ $machine = S4 ]; then
module load nco/4.9.3
elif [ $machine = JET ]; then
source /apps/lmod/lmod/init/sh
module purge
module use /lfs4/HFIP/hfv3gfs/nwprod/hpc-stack/libs/modulefiles/stack
module load hpc/1.1.0
module load hpc-intel/18.0.5.274
module load hpc-impi/2018.4.274
module load wgrib/1.8.1.0b
module load wgrib2/2.0.8
module load hpss
module load nco/4.9.1
module load prod_util/1.2.2
module load grib_util/1.2.2
module load netcdf/4.6.1
module load hdf5/1.10.4
module load intel
module load intelpython/3.6.5
module load grads/2.2.1
module use ${HOMEverif_global}/modulefiles
module load emc_verif_global_jet
if [ $MET_version = 9.1 ]; then
module use /contrib/met/modulefiles
module load met/9.1
export HOMEMET="/contrib/met/9.1"
export HOMEMET_bin_exec="bin"
else
"ERROR: $MET_version is not supported on $machine"
exit 1
fi
if [ $METplus_version = 3.1 ]; then
module use /contrib/met/METplus/modulefiles
module load R/4.0.2
module load metplus/3.1.1
export HOMEMETplus="${METPLUS_PATH}"
else
"ERROR: $METplus_version is not supported on $machine"
Expand Down

0 comments on commit ec6c8ff

Please sign in to comment.