3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
# Get list of machines |
#-- Get list of machines |
7 |
#mfile=/tmp/53210.1.darwin/machines |
# NODEFILE=/tmp/53210.1.darwin/machines |
8 |
mfile=$1 |
# NODEFILE=$1 |
9 |
if [ -f $mfile ]; then |
#-- On darwin cluster node (from qrsh session): |
10 |
echo 'Machine file == '$mfile |
JOB_ID=`qstat | sed -n '3,$ p' | grep " $USER " | awk '{print $1}'` |
11 |
|
NODEFILE="/tmp/$JOB_ID.1.darwin/machines" |
12 |
|
echo " JOB_ID = '$JOB_ID' ; NODEFILE = '$NODEFILE'" |
13 |
|
#-- |
14 |
|
if [ -f $NODEFILE ]; then |
15 |
|
echo 'Machine file == '$NODEFILE |
16 |
else |
else |
17 |
echo 'No machine file '$mfile |
echo 'No machine file '$NODEFILE |
18 |
exit |
exit |
19 |
fi |
fi |
20 |
ml=( `cat $mfile` ) |
ml=( `cat $NODEFILE` ) |
21 |
|
|
22 |
# Set root directory for run |
# Set root directory for run |
23 |
#exe_root=/scratch/jmc/nesting |
#exe_root=/scratch/jmc/nesting |