forked from ufs-community/ufs-weather-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GNU modulefile & cmake config for Ursa.
- Loading branch information
1 parent
4c5fe01
commit 40f34b6
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set(PARALLEL_NETCDF ON CACHE BOOL "Enable parallel NetCDF" FORCE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |