File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,16 @@ if (CMAKE_Fortran_COMPILER_ID MATCHES Intel AND CMAKE_BUILD_TYPE MATCHES Aggress
22
22
endif ()
23
23
24
24
if (CMAKE_Fortran_COMPILER_ID MATCHES GNU AND CMAKE_BUILD_TYPE MATCHES Release )
25
- string (REPLACE "${FOPT3} " "${FOPT2} " CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS_RELEASE} )
25
+ string (REPLACE "${FOPT3} " "${FOPT2} " CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS_RELEASE} )
26
+ # There is some odd interaction between GCC 15 and the GF code. FPEs
27
+ # that do not occur with GCC 14 or earlier. For now, we compile GF
28
+ # codes with -O1 which seems to avoid the bad instruction. Tests show
29
+ # not much of a speed difference with GCC 14
30
+ if (${CMAKE_Fortran_COMPILER_VERSION} VERSION_GREATER_EQUAL 15 )
31
+ message (STATUS "[GCC15+] Setting GF Code to use -O1 for GCC 15" )
32
+ set_source_files_properties (ConvPar_GF2020.F90 PROPERTIES COMPILE_OPTIONS ${FOPT1} )
33
+ set_source_files_properties (ConvPar_GF_GEOS5.F90 PROPERTIES COMPILE_OPTIONS ${FOPT1} )
34
+ endif ()
26
35
endif ()
27
36
28
37
# Note For unknown reasons, BACM_1M_Interface takes 20 minutes to compile at O3
You can’t perform that action at this time.
0 commit comments