Skip to content

Commit

Permalink
move local defines together, and keep load together to improve readib…
Browse files Browse the repository at this point in the history
…ility
  • Loading branch information
weihuang-jedi committed Oct 18, 2024
1 parent 37624c1 commit da0cc14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modulefiles/gfsutils_noaacloud.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ Build environment for GFS utilities on NOAA Cloud
prepend_path("MODULEPATH", "/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/apps/modules/modulefiles")

local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
local cmake_ver=os.getenv("cmake_ver") or "3.23.1"

load("gnu")
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
unload("gnu")

local cmake_ver=os.getenv("cmake_ver") or "3.23.1"

load(pathJoin("cmake", cmake_ver))

load("gfsutils_common")
Expand Down

0 comments on commit da0cc14

Please sign in to comment.