Skip to content

Commit

Permalink
Add fp-model=strict for stresso.F90 to prevent SIGFPE with newer Intel
Browse files Browse the repository at this point in the history
compilers.
  • Loading branch information
ioanhadade authored and awnawab committed Jan 15, 2025
1 parent cfbc43e commit 65511b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ecwam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,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")
Expand Down

0 comments on commit 65511b4

Please sign in to comment.