From 31bffa78fd1caf0a6494feca8b15f1f222572866 Mon Sep 17 00:00:00 2001 From: Natalie Perlin Date: Fri, 27 Dec 2024 17:00:15 +0000 Subject: [PATCH] modulefile update build_macos_gnu.lua for MacOS builds, community test configuration example for MacOS --- modulefiles/build_macos_gnu.lua | 15 +++++++++++---- ush/config.yaml | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/modulefiles/build_macos_gnu.lua b/modulefiles/build_macos_gnu.lua index 4ca84f775..ec7c6d54a 100644 --- a/modulefiles/build_macos_gnu.lua +++ b/modulefiles/build_macos_gnu.lua @@ -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") @@ -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 diff --git a/ush/config.yaml b/ush/config.yaml index 72e3d0333..379c97310 100644 --- a/ush/config.yaml +++ b/ush/config.yaml @@ -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