Package: dolfin / 2018.1.0.post1-16

test_mpi_oversubscribe.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: dolfin/cmake/scripts/generate-cmakefiles.py
===================================================================
--- dolfin.orig/cmake/scripts/generate-cmakefiles.py
+++ dolfin/cmake/scripts/generate-cmakefiles.py
@@ -64,7 +64,7 @@ endif()
 %(target_libraries)s
 
 # Test targets
-set(test_parameters -np 3 "./${PROJECT_NAME}")
+set(test_parameters -np 3 ${MPIEXEC_PARAMS} "./${PROJECT_NAME}")
 add_test(NAME ${PROJECT_NAME}_mpi COMMAND "mpirun" ${test_parameters})
 add_test(NAME ${PROJECT_NAME}_serial COMMAND ${PROJECT_NAME})
 """