Skip to content

Commit

Permalink
Workaround for (older) Intel 18 compiler bug (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Jan 11, 2023
1 parent ce1a812 commit 7a002ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/trans/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "Cray")
endif()
endif()

if(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
if( CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 18 AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 19 )

# See https://github.com/ecmwf-ifs/ectrans/issues/17
ectrans_add_compile_options(
SOURCES algor/butterfly_alg_mod.F90
FLAGS "-check nopointers")
endif()
endif()

## Assemble sources

ecbuild_list_add_pattern( LIST trans_src
Expand Down

0 comments on commit 7a002ba

Please sign in to comment.