Fix that tests intended for multiple ranks run that way
authorMark Abraham <mark.j.abraham@gmail.com>
Sat, 28 Sep 2019 08:25:41 +0000 (10:25 +0200)
committerBerk Hess <hess@kth.se>
Fri, 4 Oct 2019 11:46:28 +0000 (13:46 +0200)
Added the flag that triggers ctest to use the flags that will produce
multiple ranks in both thread-MPI and real MPI cases.

Change-Id: I4ef3af4fd1750ab7cc231a29191fc4042385c309

src/programs/mdrun/tests/CMakeLists.txt

index fd95db2de766aa8e659e2d783a674725df0c12a8..4e0152c0b6f9dc35bb77f4bd647cb4dcb8f1a1ef 100644 (file)
@@ -123,4 +123,4 @@ gmx_add_gtest_executable(
     $<TARGET_OBJECTS:mdrun_objlib>
     )
 target_link_libraries(${exename} PRIVATE mdrun_test_infrastructure)
-gmx_register_gtest_test(${testname} ${exename} OPENMP_THREADS 2 INTEGRATION_TEST)
+gmx_register_gtest_test(${testname} ${exename} MPI_RANKS 2 OPENMP_THREADS 2 INTEGRATION_TEST)