Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 313 Bytes
#!/bin/sh
echo "$*"
mpiexec="$1"
mpi_np="$2"
refout="$3"
name="$4"
shift 4
[ ${DIFF} ] || DIFF="diff"
tmpout="${name}.tmp"
echo :: "${mpiexec}" -n ${mpi_np} "./${name}" "$@" || exit 1
"${mpiexec}" -n ${mpi_np} "./${name}" "$@" > "${tmpout}" || exit 1
${DIFF} -u ${refout} ${tmpout} || exit 1
rm -f "${tmpout}"