Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test and bug fix for chgres_cube.fd/search_util.F90 #436

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Convert search util test to mpi.
Fixes #279.
  • Loading branch information
GeorgeGayno-NOAA committed Apr 16, 2021
commit bca0faf8869eeb48e63385f29a3eab1aae885ef5
8 changes: 7 additions & 1 deletion tests/chgres_cube/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,17 @@ add_mpi_test(ftst_program_setup
add_executable(ftst_search_util
"${CMAKE_SOURCE_DIR}/sorc/chgres_cube.fd/search_util.F90"
ftst_search_util.F90)
add_test(NAME ftst_search_util COMMAND ftst_search_util)
target_link_libraries(
ftst_search_util
esmf
MPI::MPI_Fortran)
if(OpenMP_Fortran_FOUND)
target_link_libraries(ftst_search_util OpenMP::OpenMP_Fortran)
endif()

# Cause test to be run with MPI. The search routine was
# written to work on a single task. So set NUMPROCS to 1.
add_mpi_test(ftst_search_util
EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/ftst_search_util
NUMPROCS 1
TIMEOUT 60)