Skip to content

Commit

Permalink
Merge pull request #395 from MichaelLueken-NOAA/feature/add_traceback
Browse files Browse the repository at this point in the history
GitHub Issue #394.  Add -g and -traceback Intel compiler options back into utilities and ncdiag
  • Loading branch information
MichaelLueken committed May 27, 2022
2 parents 776b0cf + 2fdf260 commit 047b5da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/GSD/gsdcloud/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ if(NOT CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU|Intel)$")
endif()

if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -convert big_endian")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -traceback -convert big_endian")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fconvert=big-endian")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -fbacktrace -fconvert=big-endian")
endif()

if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
Expand Down
2 changes: 1 addition & 1 deletion src/ncdiag/cmake/ncdiag_compiler_flags_Intel_Fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# FLAGS COMMON TO ALL BUILD TYPES
####################################################################

set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -assume byterecl -convert big_endian -implicitnone")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -traceback -assume byterecl -convert big_endian -implicitnone")

####################################################################
# RELEASE FLAGS
Expand Down
2 changes: 1 addition & 1 deletion util/cmake/gsiutils_compiler_flags_Intel_Fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# FLAGS COMMON TO ALL BUILD TYPES
####################################################################

set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS} -g -traceback -implicitnone")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -traceback -implicitnone")

####################################################################
# RELEASE FLAGS
Expand Down

0 comments on commit 047b5da

Please sign in to comment.