#! /bin/sh
#
# An EXACT driver that runs a parallel code
#
#  _________________________________________________________________________
#
#  FAST: Python tools for software testing.
#  Copyright (c) 2008 Sandia Corporation.
#  This software is distributed under the BSD License.
#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
#  the U.S. Government retains certain rights in this software.
#  For more information, see the FAST README.txt file.
#  _________________________________________________________________________
#
host=`hostname`
echo "Starting a parallel code from $host"

case "$host" in
  bobo.sandia.gov)
	mpirun -np $*
	;;
  *)
	print "Guessing that we should use MPIRUN on $host"
	mpirun -np $*
esac
