Skip to content

Commit 263d78c

Browse files
Update the build to compile selected RRTMGP sources with no optimization to address reproducibility issues
1 parent 66048d8 commit 263d78c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release" AND (${CMAKE_Fortran_COMPILER_ID} STREQUA
174174
foreach(SCHEME_NAME IN LISTS SCHEME_NAMES_NO_OPTIMIZATION)
175175
set(SCHEMES_TMP ${SCHEMES})
176176
# Need to determine the name of the scheme with its path
177-
list(FILTER SCHEMES_TMP INCLUDE REGEX ".*${SCHEME_NAME}$")
177+
list(FILTER SCHEMES_TMP INCLUDE REGEX "(${SCHEME_NAME}$|RRTMGP)")
178+
178179
SET_SOURCE_FILES_PROPERTIES(${SCHEMES_TMP}
179180
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} -O0")
180181
endforeach()
181182
endif()
182-
183183
#------------------------------------------------------------------------------
184184

185185
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_INCLUDEDIR})

0 commit comments

Comments
 (0)