#!/bin/tcsh
#
# DART software - Copyright UCAR. This open source software is provided
# by UCAR, "as is", without charge, subject to all terms of use at
# http://www.image.ucar.edu/DAReS/DART/DART_download
#
# DART $Id$
#
# start this script like:
#   bsub < runme   (for lsf)
#   qsub runme     (for pbs)
#   ./runme        (for everything else)
#
#----------------------------------------------------------------------
#### LSF options for BSUB
### -J      job name    (master script job.csh presumes filter.xxxx.log)
### -o      output listing filename 
### -P      account number
### -q      queue
### -n      number of tasks (processors)
### -x      exclusive use of node
### -R "span[ptile=(num procs you want on each node)]"
#
#BSUB -J ftest
#BSUB -o f.log
#BSUB -e f.err
#BSUB -q regular
#BSUB -n 4
#----------------------------------------------------------------------


#----------------------------------------------------------------------
# directives to allow this to run as a batch jobs under PBS.
#PBS -N ftest
#PBS -r n
#PBS -e f.err
#PBS -o f.log
#PBS -q small
#PBS -l nodes=4
#----------------------------------------------------------------------


if ( $?LSB_HOSTS) then

   mpirun.lsf ./ftest_mpi

else if ( $?PBS_O_WORKDIR) then

   mpirun ./ftest_mpi

else

   mpirun -np 4 -nolocal ./ftest_mpi

endif

exit 0

# <next few lines under version control, do not edit>
# $URL$
# $Revision$
# $Date$
