File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
GEOSagcm_GridComp/GEOSphysics_GridComp
GEOSsurface_GridComp/Shared Expand file tree Collapse file tree 2 files changed +15
-10
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
2222endif ()
2323
2424if (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 ()
2635endif ()
2736
2837# Note For unknown reasons, BACM_1M_Interface takes 20 minutes to compile at O3
Original file line number Diff line number Diff line change 22# #
33# Resource file for surface parameters, *jointly* used by the GCM and GEOSldas. #
44# #
5- # Different default values for the GCM and GEOSldas are supported as follows: #
6- # #
7- # - Lines that are NOT commented out can be used to specify GCM defaults as #
8- # needed, because they are ignored by GEOSldas. #
9- # #
10- # - The string "GEOSldas=>" identifies the GEOSldas default. #
11- # #
12- # This works because this resource file is processed by the GEOSldas #
13- # script "ldas_setup". #
5+ # Different default values for the GCM and GEOSldas are supported because #
6+ # because this resource file is processed by setup scripts (gcm_setup, #
7+ # fvsetup, ldas_setup). #
8+ # The setup scripts uncomment the appropriate default values by removing the #
9+ # the appropriate '# GEOS[xxxx]=>' strings. #
1410# #
1511# NOTE: For the GCM, there must NOT be white space between the resource #
1612# parameter name and the colon. #
You can’t perform that action at this time.
0 commit comments