/[escript]/trunk/bin/run-escript
ViewVC logotype

Diff of /trunk/bin/run-escript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2923 by jfenwick, Thu Feb 4 04:05:36 2010 UTC revision 3059 by jfenwick, Tue Jul 6 03:31:48 2010 UTC
# Line 22  CURDIR=`pwd` Line 22  CURDIR=`pwd`
22  #Environment vars which control operations:  #Environment vars which control operations:
23  # ESCRIPT_NUM_NODES, ESCRIPT_NUM_PROCS, ESCRIPT_NUM_THREADS, ESCRIPT_HOSTFILE, ESCRIPT_CREATESTDFILES  # ESCRIPT_NUM_NODES, ESCRIPT_NUM_PROCS, ESCRIPT_NUM_THREADS, ESCRIPT_HOSTFILE, ESCRIPT_CREATESTDFILES
24    
25  HOSTFILE=/tmp/escript.$$  HOSTFILE=/tmp/escript.$USER.$$
26  HOSTFILE2=/tmp/escript2.$$  HOSTFILE2=/tmp/escript2.$USER.$$
27    
28  #Begin finding ESCRIPT_ROOT  #Begin finding ESCRIPT_ROOT
29  if [ $STDLOCATION -ne 0 ]  if [ $STDLOCATION -ne 0 ]
# Line 213  then Line 213  then
213      ESCRIPT_NUM_NODES=1      ESCRIPT_NUM_NODES=1
214      ESCRIPT_NUM_PROCS=1      ESCRIPT_NUM_PROCS=1
215  else  else
216        # use the PBS_NODEFILE if not otherwise specified
217        if [[ ( ! -z $PBS_NODEFILE ) && ( -z $ESCRIPT_HOSTFILE ) ]]
218        then
219        ESCRIPT_HOSTFILE=$PBS_NODEFILE
220    
221        fi
222    
223      if [ ! -z $ESCRIPT_HOSTFILE ]      if [ ! -z $ESCRIPT_HOSTFILE ]
224      then      then
225          if [ -f $ESCRIPT_HOSTFILE ]          if [ -f $ESCRIPT_HOSTFILE ]
# Line 315  then Line 322  then
322      exit 1      exit 1
323    fi    fi
324  fi  fi
325  if [ -z $@ ]  if [ -z "$@" ]
326  then  then
327     if [ ! -z $DOBINARY ]     if [ ! -z $DOBINARY ]
328     then     then

Legend:
Removed from v.2923  
changed lines
  Added in v.3059

  ViewVC Help
Powered by ViewVC 1.1.26