Skip to content

Commit

Permalink
Updates to build weight_gen using intelLLVM.
Browse files Browse the repository at this point in the history
  • Loading branch information
George Gayno committed Aug 12, 2024
1 parent 8ace80f commit 8b2e37c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ option(FVCOMTOOLS "Enable building fvcom_tools.fd" OFF)
option(GBLEVENTS "Enable building gblevents.fd" OFF)
option(CPLD_GRIDGEN "Enable building cpld_gridgen.fd" OFF)
option(OCNICE_PREP "Enable building ocnice_prep.fd" OFF)
option(WEIGHT_GEN "Enable building weight_gen.fd" OFF)
option(WEIGHT_GEN "Enable building weight_gen.fd" ON)
option(OCEAN_MERGE "Enable building ocean_merge.fd" OFF)

# Option to build application specific utilities
Expand Down
2 changes: 1 addition & 1 deletion sorc/weight_gen.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ list(APPEND fortran_src
scrip.F90
)

if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel|IntelLLVM)$")
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")
Expand Down

0 comments on commit 8b2e37c

Please sign in to comment.