Skip to content

Commit

Permalink
Turn on fortran flag -fallow-argument-mismatch in chgres_cube for gfo…
Browse files Browse the repository at this point in the history
…rtran10 (#469)

turn on -fallow-argument-mismatch in chgres_cube for gfortran10
  • Loading branch information
edwardhartnett authored Apr 28, 2021
1 parent e6538e9 commit 20c12b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sorc/chgres_cube.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -convert big_endian -assume byterecl")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-0 -fdefault-real-8 -fconvert=big-endian")

# Turn on this argument mismatch flag for gfortran10.
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
endif()
endif()

set(exe_name chgres_cube)
Expand Down

0 comments on commit 20c12b8

Please sign in to comment.