From da0cc143f57a962a7a2141976037c34615c3f91a Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Fri, 18 Oct 2024 15:44:46 +0000 Subject: [PATCH] move local defines together, and keep load together to improve readibility --- modulefiles/gfsutils_noaacloud.intel.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modulefiles/gfsutils_noaacloud.intel.lua b/modulefiles/gfsutils_noaacloud.intel.lua index 028ca7b8..e44d792b 100644 --- a/modulefiles/gfsutils_noaacloud.intel.lua +++ b/modulefiles/gfsutils_noaacloud.intel.lua @@ -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")