Skip to content

Commit

Permalink
Merge remote-tracking branch 'EMC/develop' into feature/addocnvars
Browse files Browse the repository at this point in the history
  • Loading branch information
EricSinsky-NOAA committed Oct 9, 2024
2 parents a3ed7c9 + b9b9653 commit e3fd1e6
Show file tree
Hide file tree
Showing 5 changed files with 861 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ add_subdirectory(ensadd.fd)
add_subdirectory(ensppf.fd)
add_subdirectory(ensstat.fd)
add_subdirectory(wave_stat.fd)
add_subdirectory(gefs_6h_ave_1mem.fd)
19 changes: 19 additions & 0 deletions src/gefs_6h_ave_1mem.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
list(APPEND fortran_src
gefs_6h_ave_1mem.f90
prlevel.f90
printinfr.f90
)

if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -i4 -r8")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-real-8")
endif()

set(exe_name gefs_6h_ave_1mem.x)
add_executable(${exe_name} ${fortran_src})
target_link_libraries(${exe_name} PRIVATE bacio::bacio_4
w3emc::w3emc_d
g2::g2_d)

install(TARGETS ${exe_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Loading

0 comments on commit e3fd1e6

Please sign in to comment.