diff --git a/cmake/ecwam_compile_flags.cmake b/cmake/ecwam_compile_flags.cmake index f4685757..d5a37b2e 100644 --- a/cmake/ecwam_compile_flags.cmake +++ b/cmake/ecwam_compile_flags.cmake @@ -31,6 +31,7 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel") set(vectorization_flags "-march=core-avx2 -no-fma") set(fpmodel_flags "-fp-model precise -fp-speculation=safe") set(transcendentals_flags "-fast-transcendentals") + set(heap_arrays_flags "-heap-arrays 32") elseif(CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC") set(autopromote_flags "-r8") @@ -58,6 +59,9 @@ endif() if( DEFINED transcendentals_flags ) ecbuild_add_fortran_flags( "${transcendentals_flags}" NAME transcendentals ) endif() +if( DEFINED heap_arrays_flags ) + ecbuild_add_fortran_flags( "${heap_arrays_flags}" NAME heap_arrays ) +endif() if( CMAKE_BUILD_TYPE MATCHES "Debug" ) foreach( debug_flag fpe initsnan checkbounds )