opm-simulators/tests/run-parallel-unitTest.sh
Atgeirr Flø Rasmussen 9fc272fb85 Add runner script for tests needing MPI.
The script run-parallel-unitTest.sh takes as its arguments:
 - number of processes (to be passed as -np parameter to mpirun)
 - directory in which to find the binary to be executed
 - remaining arguments form the command line for the test.
2018-11-13 10:31:23 +01:00

7 lines
107 B
Bash
Executable File

#!/bin/bash
# This executes a unit test in parallel.
NP=$1
BDIR=$2
shift 2
mpirun -np $NP $BDIR/bin/$@