Skip to content

Commit

Permalink
Add -check nopointer to Intel debug flags
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed May 11, 2024
1 parent 1e7d939 commit 555c49f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion FV3
2 changes: 0 additions & 2 deletions cmake/Intel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ endif()

if(DEBUG)
add_definitions(-DDEBUG)
# In order to remove '-check nopointer', we need to add the 'optional' attribute in the CCPP physics Fortran code for every variable (pointer) that may be passed unassociated
#set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check all -check noarg_temp_created -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays")
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays")
#
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -ftrapuv")
Expand Down

0 comments on commit 555c49f

Please sign in to comment.