Skip to content

Commit

Permalink
Bugfix: Inclusion of manyvector examples (#446)
Browse files Browse the repository at this point in the history
Fixes inclusion of manyvector examples when cmake option is disabled 

Co-authored-by: David Gardner <gardner48@llnl.gov>
  • Loading branch information
Steven-Roberts and gardner48 committed Jun 20, 2024
1 parent 1c83b63 commit a288c0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion examples/arkode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
# C examples
if(EXAMPLES_ENABLE_C)
add_subdirectory(C_serial)
add_subdirectory(C_manyvector)
if(BUILD_NVECTOR_MANYVECTOR)
add_subdirectory(C_manyvector)
endif()
if(ENABLE_OPENMP AND OPENMP_FOUND)
add_subdirectory(C_openmp)
endif()
Expand Down
4 changes: 3 additions & 1 deletion examples/cvode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ if(EXAMPLES_ENABLE_C)
endif()
if(ENABLE_MPI AND MPI_C_FOUND)
add_subdirectory(parallel)
add_subdirectory(C_mpimanyvector)
if(BUILD_NVECTOR_MPIMANYVECTOR)
add_subdirectory(C_mpimanyvector)
endif()
endif()
if(ENABLE_HYPRE AND HYPRE_FOUND)
add_subdirectory(parhyp)
Expand Down
8 changes: 6 additions & 2 deletions examples/nvector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ target_link_libraries(test_nvector_obj PRIVATE sundials_nvecserial)

if(ENABLE_MPI AND MPI_C_FOUND)
add_subdirectory(parallel)
add_subdirectory(mpimanyvector)
if(BUILD_NVECTOR_MPIMANYVECTOR)
add_subdirectory(mpimanyvector)
endif()
add_subdirectory(mpiplusx)
# Build the mpi nvector test utilities
add_library(test_nvectormpi_obj OBJECT test_mpinvector.c)
Expand All @@ -43,7 +45,9 @@ if(ENABLE_MPI AND MPI_C_FOUND)
endif()
target_link_libraries(test_nvectormpi_obj PRIVATE MPI::MPI_C sundials_nvecparallel)
endif()
add_subdirectory(manyvector)
if(BUILD_NVECTOR_MANYVECTOR)
add_subdirectory(manyvector)
endif()

if(BUILD_NVECTOR_PARHYP)
add_subdirectory(parhyp)
Expand Down

0 comments on commit a288c0e

Please sign in to comment.