Skip to content

Commit

Permalink
Merge pull request #762 from GEOS-ESM/bugfix/mathomp4/degrade-moist-o…
Browse files Browse the repository at this point in the history
…pt-gnu

Use -O2 optimization in moist with GNU Release
  • Loading branch information
sdrabenh committed Jun 5, 2023
2 parents ef539f4 + d2c1ef0 commit 7707e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

# Anchors to prevent forgetting to update a version
baselibs_version: &baselibs_version v7.7.0
baselibs_version: &baselibs_version v7.13.0
bcs_version: &bcs_version v11.00.0

orbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ if (CMAKE_Fortran_COMPILER_ID MATCHES Intel AND CMAKE_BUILD_TYPE MATCHES Aggress
set (CMAKE_Fortran_FLAGS_AGGRESSIVE "${GEOS_Fortran_FLAGS_VECT}")
endif ()

if (CMAKE_Fortran_COMPILER_ID MATCHES GNU AND CMAKE_BUILD_TYPE MATCHES Release)
string (REPLACE "${FOPT3}" "${FOPT2}" CMAKE_Fortran_FLAGS_RELEASE ${CMAKE_Fortran_FLAGS_RELEASE})
endif ()

# Note For unknown reasons, BACM_1M_Interface takes 20 minutes to compile at O3
# and 10 minutes at O2. But only 7 seconds with O1. So we compile at O1
if (CMAKE_Fortran_COMPILER_ID MATCHES Intel AND CMAKE_BUILD_TYPE MATCHES Release)
Expand Down

0 comments on commit 7707e85

Please sign in to comment.