@@ -6,7 +6,7 @@ project(ccpp_physics
6
6
7
7
#------------------------------------------------------------------------------
8
8
set (PACKAGE "ccpp-physics" )
9
- set (AUTHORS "Grant Firl" "Dom Heinzeller" "Man Zhang" "Laurie Carson " )
9
+ set (AUTHORS "Grant Firl" "Dom Heinzeller" "Man Zhang" "Mike Kavulich" "Chunxi Zhang " )
10
10
11
11
#------------------------------------------------------------------------------
12
12
# Set OpenMP flags for C/C++/Fortran
@@ -20,7 +20,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
20
20
message (STATUS "Setting build type to 'Release' as none was specified." )
21
21
set (CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
22
22
# Set the possible values of build type for cmake-gui
23
- set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Bitforbit" " Release" "Coverage" )
23
+ set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "Coverage" )
24
24
endif ()
25
25
26
26
#------------------------------------------------------------------------------
@@ -145,22 +145,21 @@ SET_PROPERTY(SOURCE ${SCHEMES} ${CAPS}
145
145
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} " )
146
146
147
147
# Lower optimization for certain schemes when compiling with Intel in Release mode
148
- if ((CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "Bitforbit" ) AND
149
- ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" )
148
+ if (CMAKE_BUILD_TYPE STREQUAL "Release" AND ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" )
150
149
# Define a list of schemes that need lower optimization with Intel in Release mode
151
150
set (SCHEME_NAMES_LOWER_OPTIMIZATION module_sf_mynn.F90)
152
151
foreach (SCHEME_NAME IN LISTS SCHEME_NAMES_LOWER_OPTIMIZATION)
153
152
set (SCHEMES_TMP ${SCHEMES} )
154
153
# Need to determine the name of the scheme with its path
155
154
list (FILTER SCHEMES_TMP INCLUDE REGEX ".*${SCHEME_NAME} $" )
156
155
SET_SOURCE_FILES_PROPERTIES (${SCHEMES_TMP}
157
- APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} -O1" )
156
+ APPEND_STRING PROPERTY COMPILE_FLAGS
157
+ " ${CMAKE_Fortran_FLAGS_PHYSICS} ${OpenMP_Fortran_FLAGS} -O1" )
158
158
endforeach ()
159
159
endif ()
160
160
161
161
# No optimization for certain schemes when compiling with Intel in Release mode
162
- if ((CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "Bitforbit" ) AND
163
- ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" )
162
+ if (CMAKE_BUILD_TYPE STREQUAL "Release" AND ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" )
164
163
# Define a list of schemes that can't be optimized with Intel in Release mode
165
164
set (SCHEME_NAMES_NO_OPTIMIZATION GFS_typedefs.F90)
166
165
foreach (SCHEME_NAME IN LISTS SCHEME_NAMES_NO_OPTIMIZATION)
@@ -174,8 +173,7 @@ endif()
174
173
175
174
# Reduce optimization for mo_gas_optics_kernels.F90 (to avoid an apparent compiler bug with Intel 19+)
176
175
if (${LOCAL_CURRENT_SOURCE_DIR} /physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90 IN_LIST SCHEMES_OPENMP_OFF AND
177
- (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "Bitforbit" ) AND
178
- ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" )
176
+ CMAKE_BUILD_TYPE STREQUAL "Release" AND ${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel" )
179
177
SET_SOURCE_FILES_PROPERTIES (${LOCAL_CURRENT_SOURCE_DIR} /physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90
180
178
APPEND_STRING PROPERTY COMPILE_FLAGS " ${CMAKE_Fortran_FLAGS_PHYSICS} -O1" )
181
179
endif ()
0 commit comments