Skip to content

Commit

Permalink
extra checks for Netcdf parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Feb 5, 2025
1 parent ff38233 commit 12631b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/MOM6libConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ set(_required_components ${MOM6lib_FIND_COMPONENTS})

find_dependency(fms COMPONENTS R8 REQUIRED)
find_dependency(NetCDF REQUIRED Fortran)
if (NOT NetCDF_PARALLEL)
message(FATAL_ERROR "NetCDF does not have parallel I/O support!")
endif()

# Run the normal Targets.cmake
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
Expand Down

0 comments on commit 12631b3

Please sign in to comment.