#!/bin/csh
#
## LSF batch script to run the test MPI code
#
##BSUB -P 35171136			# Project number 
#BSUB -a poe				# select poe
##BSUB -x				# exclusive use of node (not_shared)
#BSUB -n 6				# number of total (MPI) tasks
#BSUB -R "span[ptile=8]"		# run a max of 8 tasks per node
#BSUB -J cs32test			# job name
#BSUB -o cs32.%J.out			# output filename
#BSUB -e cs32.%J.err			# error filename
#BSUB -q regular			# queue
#BSUB -W 1:00				# 1 hour wallclock limit (required)
#BSUB -B
#BSUB -N

# taken from Gael script (on blueice):
setenv MP_EUILIB us
setenv MP_SINGLE_THREAD yes
setenv AIXTHREAD_SCOPE S
setenv MP_SHARED_MEMORY yes
setenv MP_PULSE 0
setenv MP_INTRDELAY 100
setenv MP_EAGER_LIMIT 65536
setenv RT_GRQ ON
setenv HPM_EVENT_SET 1

#set rundir=/ptmp/jmc/MITgcm_chk59r/verification/dyncore/run
#cd $rundir

# Fortran example
# #mpxlf90 -o mpi_samp_f mpisamp.f
date
mpirun.lsf ./mitgcmuv -euilib us
date

