Skip to content

Commit

Permalink
Merge pull request #2778 from GEOS-ESM/feature/mathomp4/clean-macos-i…
Browse files Browse the repository at this point in the history
…ntel
  • Loading branch information
mathomp4 authored Apr 23, 2024
2 parents 14e6169 + dd341a3 commit 47e8d05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Removed CMake logic for macOS + Intel as that is an unsupported configuration

### Deprecated

## [2.44.3] - 2024-03-28
Expand Down
17 changes: 1 addition & 16 deletions MAPL_cfio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,10 @@ set (EOS )

set (lib MAPL_cfio_${precision})

if (APPLE AND CMAKE_Fortran_COMPILER_ID MATCHES Intel AND CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 20.2.1)
set (LIBRARY_TYPE STATIC)
ecbuild_warn (
"Found Intel oneAPI on macOS.\n"
"MAPL developers have found an issue with Intel oneAPI on macOS\n"
"where GEOSgcm.x would not work. Debugging found the issue was\n"
"that command_argument_count() would return -1 which should *NEVER*\n"
"happen per Fortran Standard and then this broke FLAP.\n"
"A workaround was found that if the ${this} library was compiled\n"
"as TYPE STATIC, the model would work. So we are setting ${this} as\n"
"a TYPE STATIC library. Note: This might interfere with coupled model.")
else ()
set (LIBRARY_TYPE ${MAPL_LIBRARY_TYPE})
endif ()

esma_add_library (${lib}
SRCS ${srcs}
DEPENDENCIES ESMF::ESMF NetCDF::NetCDF_Fortran
TYPE ${LIBRARY_TYPE}
TYPE ${MAPL_LIBRARY_TYPE}
)

if (precision MATCHES "r8")
Expand Down

0 comments on commit 47e8d05

Please sign in to comment.