Skip to content

Commit

Permalink
Add default compiler flags for Cray
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanhadade committed Dec 10, 2024
1 parent f3c9593 commit c69cd03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/ecwam_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ 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" )

elseif(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
set(autopromote_flags "-fdefault-real-8 -fdefault-double-8")
Expand Down Expand Up @@ -68,6 +69,9 @@ endif()
if( DEFINED heap_arrays_flags )
ecbuild_add_fortran_flags( "${heap_arrays_flags}" NAME heap_arrays )
endif()
if( DEFINED general_flags)
ecbuild_add_fortran_flags( "${general_flags}" NAME general_flags )
endif()

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

0 comments on commit c69cd03

Please sign in to comment.