Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Oct 28, 2024
1 parent 3308ebf commit 0fc7a78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions cmake/macros/SundialsAddTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ macro(SUNDIALS_ADD_TEST NAME EXECUTABLE)
if(MPIEXEC_POSTFLAGS)
set(_run_args "${MPIEXEC_POSTFLAGS} ${_run_args}")
endif()
if(_have_test_args OR _have_extra_test_args OR MPIEXEC_POSTFLAGS)
if(_have_test_args
OR _have_extra_test_args
OR MPIEXEC_POSTFLAGS)
string(STRIP "${_run_args}" _run_args)
list(APPEND TEST_ARGS "--runargs=\"${_run_args}\"")
unset(_run_args)
Expand Down Expand Up @@ -252,8 +254,8 @@ macro(SUNDIALS_ADD_TEST NAME EXECUTABLE)
NAME ${NAME}
COMMAND
${MPI_EXEC_ARGS} ${PREFLAGS} ${MPIEXEC_NUMPROC_FLAG}
${SUNDIALS_ADD_TEST_MPI_NPROCS}
$<TARGET_FILE:${EXECUTABLE}> ${POSTFLAGS} ${TEST_ARGS})
${SUNDIALS_ADD_TEST_MPI_NPROCS} $<TARGET_FILE:${EXECUTABLE}>
${POSTFLAGS} ${TEST_ARGS})
else()
add_test(
NAME ${NAME}
Expand Down
5 changes: 3 additions & 2 deletions examples/nvector/petsc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
# develop for examples excluded from 'make test' in releases

# Examples using SUNDIALS PETSc nvector
set(nvector_petsc_examples "test_nvector_petsc\;1000 0\;1\;1\;" # run sequentially
"test_nvector_petsc\;1000 0\;1\;4\;" # run 4 procs
set(nvector_petsc_examples
"test_nvector_petsc\;1000 0\;1\;1\;" # run sequentially
"test_nvector_petsc\;1000 0\;1\;4\;" # run 4 procs
)

# Dependencies for nvector examples
Expand Down

0 comments on commit 0fc7a78

Please sign in to comment.