From 2ccabdf88e9765d3455bfc81056f672641c693d0 Mon Sep 17 00:00:00 2001 From: Youngsung Kim Date: Fri, 19 Apr 2024 13:22:53 -0400 Subject: [PATCH] uses Fortran linker to support compiler dependent intrinsic functions --- cime_config/machines/cmake_macros/crayclang_frontier.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cime_config/machines/cmake_macros/crayclang_frontier.cmake b/cime_config/machines/cmake_macros/crayclang_frontier.cmake index 6bda90a4187c..6c8d4164cb28 100644 --- a/cime_config/machines/cmake_macros/crayclang_frontier.cmake +++ b/cime_config/machines/cmake_macros/crayclang_frontier.cmake @@ -15,3 +15,6 @@ string(APPEND CMAKE_Fortran_FLAGS " -hipa0 -hzero") # -em -ef generates modulename.mod (lowercase files) to support # Scorpio installs string(APPEND CMAKE_Fortran_FLAGS " -em -ef") + +# to support Fortran specific compiler intrinsic functions +set(E3SM_LINK_WITH_FORTRAN "TRUE")