Skip to content

Commit

Permalink
Turn off flag for weight_gen.
Browse files Browse the repository at this point in the history
Fixes #471.
  • Loading branch information
GeorgeGayno-NOAA committed Oct 25, 2023
1 parent 8918602 commit 8618de7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 0 additions & 5 deletions sorc/cpld_gridgen.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -assume byterecl")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-line-length-0 -fdefault-real-8")

# 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 cpld_gridgen)
Expand Down
3 changes: 0 additions & 3 deletions sorc/lsm_routines.fd/noah.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -convert big_endian")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-real-8 -fconvert=big-endian")
# if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
# set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
# endif()
endif()

set(lib_name noah_lsm_routines)
Expand Down
6 changes: 3 additions & 3 deletions sorc/weight_gen.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -r8 -i4 -convert big_endian")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-real-8")
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
endif()
# if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
# set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch")
# endif()
endif()

set(exe_name weight_gen)
Expand Down

0 comments on commit 8618de7

Please sign in to comment.