Skip to content

Commit 0287f6d

Browse files
authored
Merge pull request #1150 from GEOS-ESM/develop
Sync develop into main
2 parents a84aa0e + 75599de commit 0287f6d

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ if (CMAKE_Fortran_COMPILER_ID MATCHES Intel AND CMAKE_BUILD_TYPE MATCHES Aggress
2222
endif ()
2323

2424
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()
2635
endif ()
2736

2837
# Note For unknown reasons, BACM_1M_Interface takes 20 minutes to compile at O3

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Shared/GEOS_SurfaceGridComp.rc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
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. #

0 commit comments

Comments
 (0)