Skip to content

Commit

Permalink
remove PDAF-specific compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
jjokella committed Nov 13, 2024
1 parent fec96f6 commit 922109d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmake/SetBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ elseif(COMPILER STREQUAL "Intel" OR COMPILER STREQUAL "IntelLLVM")
set(CMAKE_C_FLAGS_DEBUG "-O0 -g")
set(CMAKE_C_FLAGS_RELEASE "-O2 -debug minimal")
set(CMAKE_Fortran_FLAGS "-free -qno-opt-dynamic-align -ftz -traceback -convert big_endian -assume byterecl -assume realloc_lhs -fp-model source -qopenmp")
if(USE_PDAF)
# PDAF: additional flags produced problems in the compilation
# https://github.com/HPSCTerrSys/TSMP2/issues/36
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all")
else()
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created")
endif()
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal")
else()
message(FATAL_ERROR "COMPILER='${COMPILER}' is not supported.")
Expand Down

0 comments on commit 922109d

Please sign in to comment.