diff --git a/cmake/ecwam_compile_flags.cmake b/cmake/ecwam_compile_flags.cmake index 5e2292da2..9e02d6f3e 100644 --- a/cmake/ecwam_compile_flags.cmake +++ b/cmake/ecwam_compile_flags.cmake @@ -16,6 +16,9 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "Cray") set(checkbounds_flags "-Rb") set(fpe_flags "-Ktrap=fp") set(initsnan_flags "-ei") + 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") @@ -68,6 +71,12 @@ endif() if( DEFINED heap_arrays_flags ) ecbuild_add_fortran_flags( "${heap_arrays_flags}" NAME heap_arrays ) 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 )