#!/bin/sh

if test $# = 0; then
  echo "Usage: `basename $0`"
  echo "Broadcast the source files to all the nodes in the virtual parallel machine"
  $HMPI_HOME/scripts/hmpi_version_info
  mpcbcast
  exit 0
fi

BFILES=$*

if test $# != 0; then
   while test $# != 0
   do
     case $1 in
     -help | -h | --help | --h | --he | --hel)
      echo "Usage: `basename $0`"
      echo "Broadcast the source files to all the nodes in the virtual parallel machine"
      echo "run '`basename $0` -v' for version information"
      exit 0
      ;;
     -v | -version | --v | --version)
      $HMPI_HOME/scripts/hmpi_version_info
      exit 0
      ;;
     esac 
     shift
   done
fi

/bin/cp $BFILES $MPCLOAD

mpcbcast $BFILES

exit 0
