#!/bin/sh
if [ $# -lt 1 ] ; then
    echo "Usage: $0 <# of cores> <datafiles>"
    exit 1
fi

if [ ! -e machines ] ; then
    cat <<EOT
<machines> file cannot  be found. Please follow the mpj documentation at
   http://mpjexpress.blogspot.de/2013/11/installing-configuring-and-using-mpj.html
to create one and start the according services
EOT
    exit 1
fi

export NP=$1
shift
mpjrun -dev niodev -wdir $PWD/ -np $NP -jar jModelTest.jar  $*
