Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature #2015 modulefiles #2024

Merged
merged 2 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions internal/scripts/installation/modulefiles/4.1.1_stampede

This file was deleted.

26 changes: 26 additions & 0 deletions internal/scripts/installation/modulefiles/5.0.0.lua_wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
help([[
]])

local pkgName = myModuleName()
local pkgVersion = myModuleVersion()
local pkgNameVer = myModuleFullName()

local hierA = hierarchyA(pkgNameVer,1)
local compNameVer = hierA[1]

conflict(pkgName)

local opt = os.getenv("HPC_OPT") or os.getenv("OPT") or "/opt/modules"

local base = pathJoin(opt,compNameVer,pkgName,pkgVersion)

prepend_path("PATH", pathJoin(base,"ush"))

setenv("METPLUS_ROOT", base)
setenv("METPLUS_VERSION", pkgVersion)
setenv("METPLUS_PATH", base)

whatis("Name: ".. pkgName)
whatis("Version: " .. pkgVersion)
whatis("Category: application")
whatis("Description: Model Evaluation Tools Plus (METplus)")
18 changes: 18 additions & 0 deletions internal/scripts/installation/modulefiles/5.0.0_casper
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#%Module######################################################################
##
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-4.1.1.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect version number. Should be 5.0.0 instead of 4.1.1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Thank you! I just updated the file in the repo and on casper. I'll go over to the main PR and do the same in that one.

*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}

module use /glade/p/ral/jntp/MET/MET_releases/casper/modulefiles
module load met/11.0.0
module load nco
module load grib-bins/1.3
module load R

prepend-path PATH /glade/p/ral/jntp/MET/METplus/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin
setenv METPLUS_PATH /glade/p/ral/jntp/MET/METplus/casper/METplus-4.1.1
prepend-path PATH /glade/p/ral/jntp/MET/METplus/casper/METplus-4.1.1/ush
1 change: 1 addition & 0 deletions internal/scripts/installation/modulefiles/5.0.0_cheyenne
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ module load R

setenv METPLUS_PATH /glade/p/ral/jntp/MET/METplus/METplus-5.0.0
prepend-path PATH /glade/p/ral/jntp/MET/METplus/METplus-5.0.0/ush:/glade/p/ral/jntp/MET/METplus/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin

22 changes: 22 additions & 0 deletions internal/scripts/installation/modulefiles/5.0.0_frontera
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#%Module######################################################################
##
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-5.0.0
*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}

module load intel/19.1.1
module load nco/4.9.7
module load Rstats/4.0.3
module load met/11.0.0
setenv METPLUS_PATH /work2/06612/tg859120/frontera/METplus/METplus-5.0.0

# Path to wgrib
prepend-path PATH /work2/08291/taosun/HPC-STACK/hpc-module/intel-18.0.2/grib_util/1.2.2/bin

# Path to wgrib2
prepend-path PATH /work2/08291/taosun/HPC-STACK/hpc-module/intel-18.0.2/wgrib2/2.0.8/bin

prepend-path PATH /work2/06612/tg859120/frontera/METplus/METplus-5.0.0/ush:/work2/06612/tg859120/frontera/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-4.1.
puts stderr "Sets up the paths and environment variables to use the METplus-5.0.
*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}

module load intel/19.0.5.281
module use -a /usw/met/modulefiles
module load met/10.1.2
module load met/11.0.0
module load nco
module load wgrib
module load wgrib2

setenv METPLUS_PATH /usw/met/METplus/METplus-4.1.3
prepend-path PATH /usw/met/METplus/METplus-4.1.3/ush:/lustre/f2/dev/esrl/Julie.Prestopnik/projects/miniconda/miniconda3/envs/metplus_v4.1_py3.6/bin
setenv METPLUS_PATH /usw/met/METplus/METplus-5.0.0
prepend-path PATH /usw/met/METplus/METplus-5.0.0/ush:/lustre/f2/dev/esrl/Julie.Prestopnik/projects/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin
2 changes: 2 additions & 0 deletions internal/scripts/installation/modulefiles/5.0.0_hera
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ proc ModulesHelp { } {
prereq intel
module use -a /contrib/anaconda/modulefiles
module load anaconda/latest
prepend-path PATH /scratch1/BMC/dtc/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin

module use -a /contrib/met/modulefiles
module load met/11.0.0
module load nco
Expand Down
8 changes: 4 additions & 4 deletions internal/scripts/installation/modulefiles/5.0.0_jet
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ proc ModulesHelp { } {
}

prereq intel
prereq intelpython/3.6.5
prereq netcdf/4.6.1
prereq hdf5/1.10.4
prereq netcdf/4.7.0
prereq hdf5/1.10.5
prereq nco/4.9.1
prereq wgrib/1.8.1.0b
prereq wgrib2/2.0.8
prereq R/4.0.2
prereq met/11.0.0

setenv METPLUS_PATH /contrib/met/METplus/METplus-5.0.0
prepend-path PATH /contrib/met/METplus/METplus-5.0.0/ush
prepend-path PATH /contrib/met/METplus/METplus-5.0.0/ush:/mnt/lfs1/HFIP/dtc-hurr/METplus/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin

2 changes: 1 addition & 1 deletion internal/scripts/installation/modulefiles/5.0.0_orion
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ proc ModulesHelp { } {

module load contrib
module load intel/2020.2
module load intelpython3/2020.2
module load met/11.0.0
module load nco/4.8.1
module load wgrib/2.0.8
prepend-path PATH /work/noaa/ovp/miniconda/miniconda3/envs/metplus_v5.0_py3.8/bin
setenv METPLUS_PATH /apps/contrib/MET/METplus/METplus-5.0.0
prepend-path PATH /apps/contrib/MET/METplus/METplus-5.0.0/ush