From df4c408f2e39e46d2fac46f89682501a4dc6bb5a Mon Sep 17 00:00:00 2001 From: Ioan Hadade Date: Wed, 15 Jan 2025 13:33:00 +0000 Subject: [PATCH] Add fp-model=strict for stresso.F90 to prevent SIGFPE with newer Intel compilers. --- src/ecwam/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ecwam/CMakeLists.txt b/src/ecwam/CMakeLists.txt index 1d2d9edb4..3c4880752 100644 --- a/src/ecwam/CMakeLists.txt +++ b/src/ecwam/CMakeLists.txt @@ -468,6 +468,7 @@ ecwam_target_compile_definitions_FILENAME( ${ecwam} ) if( CMAKE_Fortran_COMPILER_ID MATCHES Intel ) set_source_files_properties( mubuf.F90 PROPERTIES COMPILE_OPTIONS "-fp-model;strict" ) set_source_files_properties( propconnect.F90 PROPERTIES COMPILE_OPTIONS "-fp-model;strict" ) + set_source_files_properties( stresso.F90 PROPERTIES COMPILE_OPTIONS "-fp-model;strict" ) elseif( CMAKE_Fortran_COMPILER_ID MATCHES GNU ) set_source_files_properties( mubuf.F90 PROPERTIES COMPILE_OPTIONS "-ffp-contract=off" ) elseif(CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC" AND CMAKE_BUILD_TYPE MATCHES "Bit")