Skip to content

Commit

Permalink
Use same MKL logic in NCEP_gfsio
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Sep 18, 2020
1 parent f3efff6 commit 8b22490
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion NCEP_gfsio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@ esma_set_this ()

esma_add_library (${this}
SRCS gfsio_module.f90 gfsio_solve_axb.F90
DEPENDENCIES GMAO_mpeu NCEP_bacio_r4i4 NCEP_w3_r4i4 ${MKL_LIBRARIES}
DEPENDENCIES GMAO_mpeu NCEP_bacio_r4i4 NCEP_w3_r4i4
)

if (APPLE)
set(MKL_Fortran TRUE)
endif ()
find_package(MKL)
if (MKL_FOUND)
set(BLA_VENDOR Intel10_64lp_seq)
target_link_libraries(${this} PRIVATE ${MKL_LIBRARIES})
else ()
find_package(LAPACK REQUIRED)
target_link_libraries(${this} PRIVATE ${LAPACK_LIBRARIES})
endif ()

set (CMAKE_Fortran_FLAGS_RELEASE "-O3 ${BIG_ENDIAN} ${common_Fortran_flags} ${GEOS_Fortran_Release_FPE_Flags} ${ALIGNCOM}")

0 comments on commit 8b22490

Please sign in to comment.