Skip to content

Commit

Permalink
subroutines for degrib2 used separately in test, combined into their …
Browse files Browse the repository at this point in the history
…own file
  • Loading branch information
AlysonStahl-NOAA committed Jun 13, 2024
1 parent d3369e9 commit b21405d
Show file tree
Hide file tree
Showing 4 changed files with 431 additions and 429 deletions.
10 changes: 5 additions & 5 deletions test_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#
# Ed Hartnett

#if(BUILD_4)
if(BUILD_4)
# This fortran test is for the internals of degrib2.
# add_executable(test_degrib2_int test_degrib2_int.F90 ${CMAKE_SOURCE_DIR}/utils/degrib2.F90)
# target_link_libraries(test_degrib2_int PUBLIC ${PROJECT_NAME}_4)
# add_test(NAME test_degrib2_int COMMAND test_degrib2_int)
#endif()
add_executable(test_degrib2_int test_degrib2_int.F90 ${CMAKE_SOURCE_DIR}/utils/prgrib2.F90)
target_link_libraries(test_degrib2_int PUBLIC ${PROJECT_NAME}_4)
add_test(NAME test_degrib2_int COMMAND test_degrib2_int)
endif()

# Run each shell test.
function(gu_test name)
Expand Down
2 changes: 1 addition & 1 deletion utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (BUILD_4)
target_link_libraries(cnvgrib PRIVATE bacio::bacio w3emc::w3emc_4
${JASPER_LIBRARIES} PNG::PNG ${ZLIB_LIBRARY})

add_executable(degrib2 degrib2.F90)
add_executable(degrib2 prgrib2.F90 degrib2.F90)
target_link_libraries(degrib2 PUBLIC ${PROJECT_NAME}_4)
target_link_libraries(degrib2 PRIVATE bacio::bacio w3emc::w3emc_4
${JASPER_LIBRARIES} PNG::PNG ${ZLIB_LIBRARY})
Expand Down
Loading

0 comments on commit b21405d

Please sign in to comment.