Skip to content

Commit

Permalink
Convert search util test to mpi.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Apr 16, 2021
1 parent dbe2852 commit bca0faf
Showing 1 changed file with 7 additions and 1 deletion.
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)

0 comments on commit bca0faf

Please sign in to comment.