Skip to content

Commit

Permalink
modulefile update build_macos_gnu.lua for MacOS builds,
Browse files Browse the repository at this point in the history
community test configuration example for MacOS
  • Loading branch information
Natalie Perlin authored and Natalie Perlin committed Dec 27, 2024
1 parent a760922 commit 31bffa7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions modulefiles/build_macos_gnu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ if mode() == "load" then
end


prepend_path("MODULEPATH", "/Users/ssm-user/spack-stack/spack-stack-1.8.0/envs/ufs-wm-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/Users/username/spack-stack/spack-stack-1.8.0/envs/ufs-srw-env/install/modulefiles/Core")

stack_gnu_ver=os.getenv("stack_apple_clang_ver") or "15.0.0"
load(pathJoin("stack-apple-clang", stack_gnu_ver))

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

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

load("srw_common")
Expand All @@ -41,3 +41,10 @@ setenv("CMAKE_Fortran_COMPILER_ID", "GNU")

setenv("CFLAGS","-Wno-implicit-function-declaration ")


if mode() == "load" then
LmodMsgRaw([===[
Please export these env. variables after the module is successfully loaded:
> export LDFLAGS+=" -L${libjpeg_turbo_ROOT}/lib -ljpeg -Wl,-rpath,$libjpeg_turbo_ROOT}/lib -L${jasper_ROOT}/lib -ljasper -Wl,-rpath,${jasper_ROOT}/lib -L${libpng_ROOT}/lib -lpng -Wl,-rpath,${libpng_ROOT}/lib "
]===])
end
4 changes: 2 additions & 2 deletions ush/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ task_get_extrn_ics:
EXTRN_MDL_NAME_ICS: FV3GFS
FV3GFS_FILE_FMT_ICS: grib2
USE_USER_STAGED_EXTRN_FILES: true
EXTRN_MDL_SOURCE_BASEDIR_ICS: "/Users/ssm-user/UFS_SRW_data/input_model_data/FV3GFS/grib2/2019061518"
EXTRN_MDL_SOURCE_BASEDIR_ICS: "/Users/username/UFS_SRW_data/input_model_data/FV3GFS/grib2/2019061518"
task_get_extrn_lbcs:
EXTRN_MDL_NAME_LBCS: FV3GFS
LBC_SPEC_INTVL_HRS: 6
FV3GFS_FILE_FMT_LBCS: grib2
USE_USER_STAGED_EXTRN_FILES: true
EXTRN_MDL_SOURCE_BASEDIR_LBCS: "/Users/ssm-user/UFS_SRW_data/input_model_data/FV3GFS/grib2/2019061518"
EXTRN_MDL_SOURCE_BASEDIR_LBCS: "/Users/username/UFS_SRW_data/input_model_data/FV3GFS/grib2/2019061518"
task_run_fcst:
QUILTING: true
LAYOUT_X: 3
Expand Down

0 comments on commit 31bffa7

Please sign in to comment.