Skip to content

Commit

Permalink
Add a macos clang module file
Browse files Browse the repository at this point in the history
  • Loading branch information
mkavulich committed Apr 4, 2024
1 parent be44954 commit 672e715
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions scm/etc/modules/macos_clang.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
help([[
This module loads libraries for building the CCPP Single-Column Model on
a MacOS machine with clang v15.0.0 compilers
]])

whatis([===[Loads libraries needed for building the CCPP SCM on a MacOS machine with clang v15.0.0 compilers]===])

local ssd=os.getenv("SPACK_STACK_DIR") or LmodError ("Environment variable SPACK_STACK_DIR is not set")
prepend_path("MODULEPATH", ssd .. "/envs/scm-test/install/modulefiles/Core")

load("stack-apple-clang/15.0.0")
load("stack-python/3.10.13")
load("stack-openmpi/4.1.6")


load("cmake/3.28.3")

load("netcdf-c/4.9.2")
load("netcdf-fortran/4.6.1")

load("py-f90nml/1.4.3")
load("py-netcdf4/1.5.8")


load("bacio/2.4.1")
load("sp/2.5.0")
load("w3emc/2.10.0")

setenv("CMAKE_C_COMPILER","clang")
setenv("CMAKE_CXX_COMPILER","clang++")
setenv("CMAKE_Fortran_COMPILER","gfortran-12")
setenv("CMAKE_Platform","macos.clang")

0 comments on commit 672e715

Please sign in to comment.