# stuff to run jobs in the background
# type:
#
# qsub filename
#
# where filename is the name of this file

#!/bin/tcsh
#
# I want to run my job in csh:
#$ -S /bin/tcsh
#
# run the job in the directory qsub was run from rather than the home directory
#$ -cwd
cd <your working directory here!>
#
# Mail me if the job is aborted or at the end of job:
#$ -M <your full email address here>
#$ -m ea
#
# put the output from this job in go.txt:
#$ -o <your working directory here!>/output.log
#
# should there be any errors, put them in go.err:
#$ -e <your working directory here!>/error.log
#
# set maximum memory usage
# the arch flag is for xeon processors. Other options are
# sol-amd64 for opterons or even sol-amd64|sol-x86 if
# you don't care which.
#$ -l arch=sol-x86
#$ -l s_vmem=300M
#$ -l h_vmem=300M
#
# nice to have speed
#$ -soft -l mhz=2000
# the next line is the name of the job
#$ -N xeonsc
# run my cpu-intensive 
rm -f out
rm -f modout
rm -f plot
rm -f out2
rm -f plot2
rm -f fort.30
rm -f fort.32
rm -f fort.33
rm -f fort.34
rm -f fort.40
rm -f syntha
rm -f syntha2
rm -f synthb
rm -f synthb2
rm -f synthc
rm -f synthc2
rm -f centre
rm -f centre2
rm -f surface
rm -f surface2
#alias rm rm -i
# user input data
ln -s data fort.1
# useless debugging in fort.24
# link input physics files
#ln -s ../../../COtables COtables
ln -s phys02.dat fort.11
ln -s nrate.dat fort.13
# I/O for star 1
ln -s modin fort.30
ln -s nucmodin fort.31
ln -s out fort.32
ln -s plot fort.33
ln -s modout fort.34
ln -s nucmodout fort.35
ln -s syntha fort.36
ln -s synthb fort.37
ln -s synthc fort.38
ln -s surface fort.39
ln -s centre fort.40
ln -s sprocess fort.41
# need to add - sprocess?
# I/O for star 2
ln -s modin2 fort.50
ln -s nucmodin2 fort.51
ln -s out2 fort.52
ln -s plot2 fort.53
ln -s modout2 fort.54
ln -s nucmodout2 fort.55
ln -s syntha2 fort.56
ln -s synthb2 fort.57
ln -s synthc2 fort.58
ln -s surface2 fort.59
ln -s centre2 fort.60
ln -s sprocess fort.61
./bs
rm -f fort.*