Skip to content

Commit

Permalink
Add GNU modulefile & cmake config for Ursa.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmononian committed Feb 4, 2025
1 parent 4c5fe01 commit 40f34b6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configure_ursa.gnu.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(PARALLEL_NETCDF ON CACHE BOOL "Enable parallel NetCDF" FORCE)
27 changes: 27 additions & 0 deletions modulefiles/ufs_ursa.gnu.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
help([[
loads UFS Model prerequisites for Ursa/Intel
]])

prepend_path("MODULEPATH", "/collab1/data/Ratko.Vasic/spack-stack-1.6.0/envs/fms-2024.01-gnu/install/modulefiles/Core")

stack_gnu_ver=os.getenv("stack_gnu_ver") or "12.4.0"
load(pathJoin("stack-gcc", stack_gnu_ver))

stack_openmpi_ver=os.getenv("stack_openmpi_ver") or "4.1.6"
load(pathJoin("stack-openmpi", stack_openmpi_ver))

cmake_ver=os.getenv("cmake_ver") or "3.23.1"
load(pathJoin("cmake", cmake_ver))

load("ufs_common")

nccmp_ver=os.getenv("nccmp_ver") or "1.9.1.0"
load(pathJoin("nccmp", nccmp_ver))

setenv("CC", "mpicc")
setenv("CXX", "mpic++")
setenv("FC", "mpif90")

setenv("CMAKE_Platform", "ursa.gnu")

whatis("Description: UFS build environment")

0 comments on commit 40f34b6

Please sign in to comment.