Skip to content

Commit

Permalink
Merge pull request #331 from GEOS-ESM/feature/tclune/#330-NAG-flags
Browse files Browse the repository at this point in the history
Improvements to NAG default flags.
  • Loading branch information
mathomp4 authored Sep 5, 2023
2 parents ebf3f1e + 9ca3dbd commit fb0af46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

### Changed
- Modified default flags for NAG to allow more aggressive debug flags. Mostly this is by using a more specific list of procedures for which interface "mismatch" warnings are suppressed.

## [3.32.0] - 2023-09-01

Expand Down
10 changes: 5 additions & 5 deletions compiler/flags/NAG_Fortran.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ set (FREAL8 "-r8")
set (FINT8 "-i8")
set (PP "-fpp")
set (DUSTY "-dusty")
set (MISMATCH "-mismatch_all")
set (MISMATCH "-wmismatch=QSORTL,QSORTS,MPI_Recv,MPI_Send,MPI_Irecv,MPI_BCast,MPI_Allgather,MPI_Allgatherv,MPI_Allreduce,MPI_Scatterv,MPI_Gatherv,MPI_Sendrecv,MPI_File_write,MPI_File_read,MPI_File_Read_at_all,MPI_File_write_at_all,ESMF_UserCompSetInternalState,ESMF_UserCompGetInternalState")
set (DISABLE_FIELD_WIDTH_WARNING)
set (CRAY_POINTER "")
set (EXTENDED_SOURCE "-132 -w=x95" )
set (FIXED_SOURCE "-fixed")
set (UNUSED_DUMMY "-w=uda")
set (SUPPRESS_UNUSED_DUMMY "-w=uda")
set (F2018 "-f2018")

if (APPLE)
option (ESMF_HAS_ACHAR_BUG "ESMF Compatibility issue" ON)
Expand All @@ -21,14 +22,13 @@ endif ()

# Common Fortran Flags
# --------------------
set (common_Fortran_flags ${UNUSED_DUMMY})
set (common_Fortran_flags "${F2018} ${MISMATCH}")
set (common_Fortran_fpe_flags "") # "${DUSTY}")
#set (common_Fortran_fpe_flags "")

# GEOS Debug
# ----------
#set (GEOS_Fortran_Debug_Flags "-O0 -g")# -C=all") # -C=undefined")
set (GEOS_Fortran_Debug_Flags "-O0 -g -C=all -Wp,-P")# -C=all ") # -C=undefined")
set (GEOS_Fortran_Debug_Flags "-O0 -g -C=all") # -C=undefined")
set (GEOS_Fortran_Debug_FPE_Flags "${common_Fortran_fpe_flags}")

# GEOS Release
Expand Down

0 comments on commit fb0af46

Please sign in to comment.