Skip to content

Commit

Permalink
Prettify flags for Cray compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanhadade committed Dec 17, 2024
1 parent c69cd03 commit 8004fc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmake/ecwam_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "Cray")
set(checkbounds_flags "-Rb")
set(fpe_flags "-Ktrap=fp")
set(initsnan_flags "-ei")
set(general_flags "-ram -emf -hflex_mp=conservative -Othread1 -hfp1 -hadd_paren" )
set(threading_flags "-Othread1")
set(fpmodel_flags "-hfp1 -hflex_mp=conservative -hadd_paren")
set(baseline_flags "-ram -emf")

elseif(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
set(autopromote_flags "-fdefault-real-8 -fdefault-double-8")
Expand Down Expand Up @@ -72,6 +74,12 @@ endif()
if( DEFINED general_flags)
ecbuild_add_fortran_flags( "${general_flags}" NAME general_flags )
endif()
if( DEFINED baseline_flags)
ecbuild_add_fortran_flags( "${baseline_flags}" NAME baseline_flags )
endif()
if( DEFINED threading_flags)
ecbuild_add_fortran_flags( "${threading_flags}" NAME threading_flags )
endif()

if( CMAKE_BUILD_TYPE MATCHES "Debug" )
foreach( debug_flag fpe initsnan checkbounds )
Expand Down

0 comments on commit 8004fc1

Please sign in to comment.