#!/bin/sh

if [ -z "${MPITRAMPOLINE_MPIEXEC+x}" ]; then
    echo "The environment variable MPITRAMPOLINE_MPIEXEC is not set."
    echo "Running the application directly." 1>&2
    sleep 1
    exec "$@"
else
    exec "$MPITRAMPOLINE_MPIEXEC" "$@"
fi
