hypre/test/mpirun.casc
2000-08-28 15:49:40 +00:00

28 lines
667 B
Bash
Executable File

#!/bin/sh
#BHEADER***********************************************************************
# (c) 1998 The Regents of the University of California
#
# See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
# notice, contact person, and disclaimer.
#
# $Revision$
#EHEADER***********************************************************************
MACHINES_FILE="mpirun.casc.machines"
REMOVE_MACHINES_FILE="no"
if [ ! -f $MACHINES_FILE ]
then
hostname > $MACHINES_FILE
REMOVE_MACHINES_FILE="yes"
fi
echo "(mpirun -machinefile $MACHINES_FILE $*)"
mpirun -machinefile $MACHINES_FILE $*
if [ $REMOVE_MACHINES_FILE = "yes" ]
then
rm -f $MACHINES_FILE
fi