/[escript]/trunk/scripts/finley_wrapper_template
ViewVC logotype

Diff of /trunk/scripts/finley_wrapper_template

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

revision 2375 by gross, Mon Apr 6 05:32:12 2009 UTC revision 2376 by gross, Tue Apr 7 06:21:31 2009 UTC
# Line 58  else Line 58  else
58  fi  fi
59  ##### End finding ESCRIPT_ROOT  ########  ##### End finding ESCRIPT_ROOT  ########
60    
61  PYTHON_MPI="$ESCRIPT_ROOT/lib/pythonMPI"  PYTHON_MPI_NULL="$ESCRIPT_ROOT/lib/pythonMPI"
62    PYTHON_MPI_REDIRECT="$ESCRIPT_ROOT/lib/pythonMPIredirect"
63  PYTHON_CMD=python  PYTHON_CMD=python
64    
65  # if possible please express paths relative to $ESCRIPT_ROOT unless  # if possible please express paths relative to $ESCRIPT_ROOT unless
# Line 268  then           #This could happen if the args we Line 269  then           #This could happen if the args we
269    echo "expression of total number of processors = $ESCRIPT_NUM_NODES * $ESCRIPT_NUM_PROCS is not numerical."    echo "expression of total number of processors = $ESCRIPT_NUM_NODES * $ESCRIPT_NUM_PROCS is not numerical."
270    exit 1    exit 1
271  fi  fi
272    
273  #  #
274  # Test to ensure people aren't trying to combine interactive and multi-process  # Test to ensure people aren't trying to combine interactive and multi-process
275  #  #
# Line 276  then Line 278  then
278    echo "Interactive mode cannot be used with more than one process"    echo "Interactive mode cannot be used with more than one process"
279    exit 1    exit 1
280  fi  fi
281    
282    if [ $TOTPROC -gt 1 ]
283    then
284       if [ "$ESCRIPT_CREATESTDFILES" == "yes" ]
285       then
286           PYTHON_MPI=$PYTHON_MPI_REDIRECT
287       else
288           PYTHON_MPI=$PYTHON_MPI_NULL
289       fi
290    else
291        PYTHON_MPI=$PYTHON_MPI_NULL
292    fi
293  #=========================================================================================================  #=========================================================================================================
294  # Must have at least one command-line arg: the python script  # Must have at least one command-line arg: the python script
295  if [ $# -eq 0 ]  if [ $# -eq 0 ]

Legend:
Removed from v.2375  
changed lines
  Added in v.2376

  ViewVC Help
Powered by ViewVC 1.1.26