]> https://gitweb.dealii.org/ - dealii.git/commitdiff
mpi quicktests fail 7897/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 8 Apr 2019 14:01:39 +0000 (08:01 -0600)
committerTimo Heister <timo.heister@gmail.com>
Mon, 8 Apr 2019 14:01:39 +0000 (08:01 -0600)
mpirun completes about not finding the executable. This reverts part of

tests/quick_tests/CMakeLists.txt

index ba2493fdb300d9b403ef15c654ef137251b6a09f..7c3023344e362ff3261e288c9f32a7a16f370ce6 100644 (file)
@@ -46,7 +46,11 @@ MACRO(make_quicktest test_basename build_name mpi_run)
   IF("${mpi_run}" STREQUAL "")
     SET(_command ${_target})
   ELSE()
-    SET(_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${mpi_run} ${MPIEXEC_PREFLAGS} ${_target})
+    IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
+      SET(_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${mpi_run} ${MPIEXEC_PREFLAGS} ${_target})
+    ELSE()
+      SET(_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${mpi_run} ${MPIEXEC_PREFLAGS} ./${_target})
+    ENDIF()
   ENDIF()
   ADD_CUSTOM_TARGET(${_target}.run
     DEPENDS ${_target}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.