Skip to content

Commit

Permalink
convert to lmod for hera and orion
Browse files Browse the repository at this point in the history
  • Loading branch information
HelinWei-NOAA committed Feb 14, 2022
1 parent 42af7c5 commit b6f5cd1
Show file tree
Hide file tree
Showing 24 changed files with 322 additions and 164 deletions.
17 changes: 0 additions & 17 deletions modulefiles/gdas2gldas.hera

This file was deleted.

33 changes: 33 additions & 0 deletions modulefiles/gdas2gldas.hera.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
help([[
Load environment to run GLDAS on Hera
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

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

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

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

w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
nemsio_ver=os.getenv("nemsio_ver") or "2.5.2"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
sp_ver=os.getenv("sp_ver") or "2.3.3"
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("nemsio", nemsio_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("sp", sp_ver))

hdf5_ver=os.getenv("hdf5_ver") or "1.10.6"
netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"
esmf_ver=os.getenv("esmf_ver") or "8_2_0"

load(pathJoin("hdf5", hdf5_ver))
load(pathJoin("netcdf", netcdf_ver))
load(pathJoin("esmf", esmf_ver))

whatis("Description: GLDAS run environment")
16 changes: 0 additions & 16 deletions modulefiles/gdas2gldas.orion

This file was deleted.

33 changes: 33 additions & 0 deletions modulefiles/gdas2gldas.orion.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
help([[
Load environment to run GLDAS on Orion
]])

prepend_path("MODULEPATH", "/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack")

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

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

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

w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
nemsio_ver=os.getenv("nemsio_ver") or "2.5.2"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
sp_ver=os.getenv("sp_ver") or "2.3.3"
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("nemsio", nemsio_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("sp", sp_ver))

hdf5_ver=os.getenv("hdf5_ver") or "1.10.6"
netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"
esmf_ver=os.getenv("esmf_ver") or "8_2_0"

load(pathJoin("hdf5", hdf5_ver))
load(pathJoin("netcdf", netcdf_ver))
load(pathJoin("esmf", esmf_ver))

whatis("Description: GLDAS run environment")
17 changes: 0 additions & 17 deletions modulefiles/gldas2gdas.hera

This file was deleted.

33 changes: 33 additions & 0 deletions modulefiles/gldas2gdas.hera.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
help([[
Load environment to run GLDAS on Hera
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

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

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

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

w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
nemsio_ver=os.getenv("nemsio_ver") or "2.5.2"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
sp_ver=os.getenv("sp_ver") or "2.3.3"
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("nemsio", nemsio_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("sp", sp_ver))

hdf5_ver=os.getenv("hdf5_ver") or "1.10.6"
netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"
esmf_ver=os.getenv("esmf_ver") or "8_2_0"

load(pathJoin("hdf5", hdf5_ver))
load(pathJoin("netcdf", netcdf_ver))
load(pathJoin("esmf", esmf_ver))

whatis("Description: GLDAS run environment")
16 changes: 0 additions & 16 deletions modulefiles/gldas2gdas.orion

This file was deleted.

33 changes: 33 additions & 0 deletions modulefiles/gldas2gdas.orion.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
help([[
Load environment to run GLDAS on Orion
]])

prepend_path("MODULEPATH", "/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack")

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

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

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

w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
nemsio_ver=os.getenv("nemsio_ver") or "2.5.2"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
sp_ver=os.getenv("sp_ver") or "2.3.3"
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("nemsio", nemsio_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("sp", sp_ver))

hdf5_ver=os.getenv("hdf5_ver") or "1.10.6"
netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"
esmf_ver=os.getenv("esmf_ver") or "8_2_0"

load(pathJoin("hdf5", hdf5_ver))
load(pathJoin("netcdf", netcdf_ver))
load(pathJoin("esmf", esmf_ver))

whatis("Description: GLDAS run environment")
10 changes: 0 additions & 10 deletions modulefiles/gldas_forcing.hera

This file was deleted.

18 changes: 18 additions & 0 deletions modulefiles/gldas_forcing.hera.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
help([[
Load environment to run GLDAS on Hera
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

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

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

w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("bacio", bacio_ver))

whatis("Description: GLDAS run environment")
10 changes: 0 additions & 10 deletions modulefiles/gldas_forcing.orion

This file was deleted.

18 changes: 18 additions & 0 deletions modulefiles/gldas_forcing.orion.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
help([[
Load environment to run GLDAS on Orion
]])

prepend_path("MODULEPATH", "/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack")

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

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

w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("bacio", bacio_ver))

whatis("Description: GLDAS run environment")
14 changes: 0 additions & 14 deletions modulefiles/gldas_model.hera

This file was deleted.

27 changes: 27 additions & 0 deletions modulefiles/gldas_model.hera.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
help([[
Load environment to run GLDAS on Hera
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

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

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

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

w3emc_ver=os.getenv("w3emc_ver") or "2.7.3"
w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
sp_ver=os.getenv("sp_ver") or "2.3.3"
ip_ver=os.getenv("ip_ver") or "3.3.3"
load(pathJoin("w3emc", w3emc_ver))
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("sp", sp_ver))
load(pathJoin("ip", ip_ver))

whatis("Description: GLDAS run environment")
13 changes: 0 additions & 13 deletions modulefiles/gldas_model.orion

This file was deleted.

27 changes: 27 additions & 0 deletions modulefiles/gldas_model.orion.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
help([[
Load environment to run GLDAS on Orion
]])

prepend_path("MODULEPATH", "/apps/contrib/NCEP/libs/hpc-stack/modulefiles/stack")

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

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

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

w3emc_ver=os.getenv("w3emc_ver") or "2.7.3"
w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
sp_ver=os.getenv("sp_ver") or "2.3.3"
ip_ver=os.getenv("ip_ver") or "3.3.3"
load(pathJoin("w3emc", w3emc_ver))
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("sp", sp_ver))
load(pathJoin("ip", ip_ver))

whatis("Description: GLDAS run environment")
13 changes: 0 additions & 13 deletions modulefiles/gldas_post.hera

This file was deleted.

25 changes: 25 additions & 0 deletions modulefiles/gldas_post.hera.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
help([[
Load environment to run GLDAS on Hera
]])

prepend_path("MODULEPATH", "/scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/modulefiles/stack")

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

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

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

w3emc_ver=os.getenv("w3emc_ver") or "2.7.3"
w3nco_ver=os.getenv("w3nco_ver") or "2.4.1"
bacio_ver=os.getenv("bacio_ver") or "2.4.1"
nemsio_ver=os.getenv("nemsio_ver") or "2.5.2"
load(pathJoin("w3emc", w3emc_ver))
load(pathJoin("w3nco", w3nco_ver))
load(pathJoin("bacio", bacio_ver))
load(pathJoin("nemsio", nemsio_ver))

whatis("Description: GLDAS run environment")
Loading

0 comments on commit b6f5cd1

Please sign in to comment.