From 4ef4afcdbaf0a68ca8aa69706038b0ec169286bc Mon Sep 17 00:00:00 2001 From: Jong Kim Date: Mon, 17 Apr 2023 14:51:47 +0000 Subject: [PATCH] add orion modulefile --- modulefiles/ufs_orion.intel.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modulefiles/ufs_orion.intel.lua diff --git a/modulefiles/ufs_orion.intel.lua b/modulefiles/ufs_orion.intel.lua new file mode 100644 index 00000000..406dc4ee --- /dev/null +++ b/modulefiles/ufs_orion.intel.lua @@ -0,0 +1,30 @@ +help([[ +loads UFS Model prerequisites for Orion/Intel +]]) + +prepend_path("MODULEPATH", "/work/noaa/epic-ps/role-epic-ps/spack-stack/spack-stack-1.3.0/envs/unified-env/install/modulefiles/Core") +prepend_path("MODULEPATH", "/work/noaa/da/role-da/spack-stack/modulefiles") + +stack_intel_ver=os.getenv("stack_intel_ver") or "2022.0.2" +load(pathJoin("stack-intel", stack_intel_ver)) + +stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" +load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) + +stack_python_ver=os.getenv("stack_python_ver") or "3.9.7" +load(pathJoin("stack-python", stack_python_ver)) + +cmake_ver=os.getenv("cmake_ver") or "3.22.1" +load(pathJoin("cmake", cmake_ver)) + +ecbuild_ver=os.getenv("ecbuild_ver") or "3.6.5" +load(pathJoin("ecbuild", ecbuild_ver)) + +load("ufs_common") + +setenv("CC", "mpiicc") +setenv("CXX", "mpiicpc") +setenv("FC", "mpiifort") +setenv("CMAKE_Platform", "orion.intel") + +whatis("Description: UFS build environment")