Skip to content

Commit

Permalink
updating the number of mpi ranks in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sslattery committed Dec 4, 2018
1 parent 67ec146 commit 45d638f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if(Cabana_ENABLE_MPI)
foreach(_test CommunicationPlan Distributor Halo)
add_executable(${_test}_test_${_device} ${_device}/tst${_test}_${_device}.cpp mpi_unit_test_main.cpp)
target_link_libraries(${_test}_test_${_device} cabanacore cabana_core_gtest)
foreach(_np 1 2 4)
foreach(_np 1 ${MPIEXEC_MAX_NUMPROCS})
add_test(NAME ${_test}_test_${_device}_${_np} COMMAND
${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${_np} ${_test}_test_${_device} --gtest_color=yes)
endforeach()
Expand Down

0 comments on commit 45d638f

Please sign in to comment.