From 98fe1e3fb69f13581a201c54b1c9cdf5c6ce3e75 Mon Sep 17 00:00:00 2001 From: manishvenu Date: Tue, 14 Jul 2026 15:10:21 -0600 Subject: [PATCH 1/3] Build ww3_bounc as a standalone executable ww3_bounc consumes boundary-spectra netCDF files to produce nest.ww3 for regional/nested grids, mirroring ww3_grid and ww3_strt, but was never added as a CMake executable target, so it was never compiled or staged for CIME's buildnml to copy and run. --- model/src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/src/CMakeLists.txt b/model/src/CMakeLists.txt index 544d7626d..484220b8a 100644 --- a/model/src/CMakeLists.txt +++ b/model/src/CMakeLists.txt @@ -132,5 +132,7 @@ add_executable(ww3_grid ww3_grid.F90) target_link_libraries(ww3_grid PRIVATE wav) add_executable(ww3_strt ww3_strt.F90) target_link_libraries(ww3_strt PRIVATE wav) +add_executable(ww3_bounc ww3_bounc.F90) +target_link_libraries(ww3_bounc PRIVATE wav) install(TARGETS wav) From 077ea5244c161e819c051baf1c4e894224d4ac3a Mon Sep 17 00:00:00 2001 From: manishvenu Date: Tue, 14 Jul 2026 16:32:35 -0600 Subject: [PATCH 2/3] Link ww3_bounc against netCDF-Fortran ww3_bounc calls nf90_* directly to read boundary-spectra files, unlike ww3_grid/ww3_strt which never touch netCDF, so it needs an explicit link against netcdff. Uses NETCDF_PATH, already set identically on casper and derecho by Macros.cmake. --- model/src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model/src/CMakeLists.txt b/model/src/CMakeLists.txt index 484220b8a..927f94cac 100644 --- a/model/src/CMakeLists.txt +++ b/model/src/CMakeLists.txt @@ -13,6 +13,8 @@ else() endif() set(CMAKE_Fortran_FLAGS "${FFLAGS} ${CPPDEFS} -I${LIBROOT}/include -I${LIBROOT}/finclude -I${LIBROOT}/nuopc/esmf/${NINST_VALUE}/include") +find_library(NETCDF_Fortran_LIBRARY NAMES netcdff HINTS ${NETCDF_PATH}/lib) + #------------------------- # Set ESMF_F90COMPILEPATHS #------------------------- @@ -133,6 +135,6 @@ target_link_libraries(ww3_grid PRIVATE wav) add_executable(ww3_strt ww3_strt.F90) target_link_libraries(ww3_strt PRIVATE wav) add_executable(ww3_bounc ww3_bounc.F90) -target_link_libraries(ww3_bounc PRIVATE wav) +target_link_libraries(ww3_bounc PRIVATE wav ${NETCDF_Fortran_LIBRARY}) install(TARGETS wav) From c6eb9e1a56bcbe81b764950ad8f441ed1a99c343 Mon Sep 17 00:00:00 2001 From: manishvenu Date: Mon, 31 Aug 2026 10:17:52 -0600 Subject: [PATCH 3/3] Change? --- model/src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model/src/CMakeLists.txt b/model/src/CMakeLists.txt index 484220b8a..927f94cac 100644 --- a/model/src/CMakeLists.txt +++ b/model/src/CMakeLists.txt @@ -13,6 +13,8 @@ else() endif() set(CMAKE_Fortran_FLAGS "${FFLAGS} ${CPPDEFS} -I${LIBROOT}/include -I${LIBROOT}/finclude -I${LIBROOT}/nuopc/esmf/${NINST_VALUE}/include") +find_library(NETCDF_Fortran_LIBRARY NAMES netcdff HINTS ${NETCDF_PATH}/lib) + #------------------------- # Set ESMF_F90COMPILEPATHS #------------------------- @@ -133,6 +135,6 @@ target_link_libraries(ww3_grid PRIVATE wav) add_executable(ww3_strt ww3_strt.F90) target_link_libraries(ww3_strt PRIVATE wav) add_executable(ww3_bounc ww3_bounc.F90) -target_link_libraries(ww3_bounc PRIVATE wav) +target_link_libraries(ww3_bounc PRIVATE wav ${NETCDF_Fortran_LIBRARY}) install(TARGETS wav)