diff --git a/modulefiles/emc_verif_global_jet.lua b/modulefiles/emc_verif_global_jet.lua new file mode 100644 index 0000000..c8996aa --- /dev/null +++ b/modulefiles/emc_verif_global_jet.lua @@ -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)) diff --git a/ush/load_modules.sh b/ush/load_modules.sh index ca185a2..66da12e 100755 --- a/ush/load_modules.sh +++ b/ush/load_modules.sh @@ -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 @@ -125,25 +123,9 @@ 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 @@ -151,9 +133,6 @@ elif [ $machine = JET ]; then 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"