Skip to content

Commit

Permalink
add option to build with GTG code or stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul committed Jan 7, 2022
1 parent 98f7acd commit 4610610
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
option(OPENMP "use OpenMP threading" ON)
option(BUILD_POSTEXEC "Build NCEPpost executable" ON)
option(BUILD_WITH_WRFIO "Build NCEPpost with WRF-IO library" OFF)
option(BUILD_WITH_GTG "Build NCEPpost with NCAR/GTG" OFF)
option(ENABLE_DOCS "Enable generation of doxygen-based documentation." OFF)

if(NOT CMAKE_BUILD_TYPE MATCHES "^(Debug|Release|RelWithDebInfo|MinSizeRel)$")
Expand Down
14 changes: 14 additions & 0 deletions sorc/ncep_post.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,20 @@ list(APPEND LIB_SRC
xml_perl_data.f
ZENSUN.f)

list(APPEND GTG_LIB_SRC
gtg_algo.F90
gtg_compute.F90
gtg_config.F90
gtg_ctlblk.F90
gtg_filter.F90
gtg_indices.F90
gtg_smoothseams.F90)

if(BUILD_WITH_GTG)
list(TRANSFORM GTG_LIB_SRC PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/../post_gtg.fd/)
list(APPEND LIB_SRC ${GTG_LIB_SRC})
endif()

list(APPEND EXE_SRC
ASSIGNNEMSIOVAR.f
GETNEMSNDSCATTER.f
Expand Down

0 comments on commit 4610610

Please sign in to comment.