davidsch / rpms / bout++

Forked from rpms/bout++ 2 years ago
Clone

Blame test-mpi.patch

David Schwörer 86b481b
commit 5879823ab8b53b7f41ab62c1850d85294d68e28a
David Schwörer 86b481b
Author: David Schwörer <schword2@mail.dcu.ie>
David Schwörer 86b481b
Date:   Fri Nov 22 19:27:56 2019 +0000
David Schwörer 86b481b
David Schwörer 86b481b
    Bugfix: $MPIRUN should include -np
David Schwörer 86b481b
David Schwörer 86b481b
diff --git a/tests/integrated/test-coordinates-initialization/runtest b/tests/integrated/test-coordinates-initialization/runtest
David Schwörer 86b481b
index 0c5626896..f1bc16044 100755
David Schwörer 86b481b
--- a/tests/integrated/test-coordinates-initialization/runtest
David Schwörer 86b481b
+++ b/tests/integrated/test-coordinates-initialization/runtest
David Schwörer 86b481b
@@ -2,9 +2,9 @@
David Schwörer 86b481b
 
David Schwörer 86b481b
 make || exit
David Schwörer 86b481b
 
David Schwörer 86b481b
-test -z $MPIRUN  && MPIRUN=mpirun
David Schwörer 86b481b
+test -z $MPIRUN  && MPIRUN='mpirun -np'
David Schwörer 86b481b
 # Kill the test after 3 seconds, if it hasn't already exited
David Schwörer 86b481b
-OMP_NUM_THREADS=1 $MPIRUN -n 3 timeout 3s ./test-coordinates-initialization
David Schwörer 86b481b
+OMP_NUM_THREADS=1 $MPIRUN 3 timeout 3s ./test-coordinates-initialization
David Schwörer 86b481b
 
David Schwörer 86b481b
 e=$?
David Schwörer 86b481b