#PBS -S /bin/ksh #PBS -N prk-chap.150003 #PBS -q special@chapman #PBS -l ncpus=256 #PBS -l mem=2000mb #PBS -l walltime=12:00:00 #PBS -m e #PBS -o output.150003 #PBS -j oe # The default for the environmental variable OMP_NUM_THREADS # is set at 1. If you want it to be same as $NCPUS, # you have to set it explicitly. # setenv OMP_NUM_THREADS 16 # export OMP_NUM_THREADS=16 # By default, PBS executes your job from your home directory. # However, you can use the environment variable # PBS_O_WORKDIR to change to the directory where # you submitted your job. # in the case below, I have copied all my files to nobackup1 rm /cluster/chapman/nobackup1/nbeeler/testing.txt rm /cluster/chapman/nobackup1/nbeeler/dbg rm /cluster/chapman/nobackup1/nbeeler/park rm /cluster/chapman/nobackup1/nbeeler/run.pr* rm -r /cluster/chapman/nobackup1/nbeeler/out rm -r /cluster/chapman/nobackup1/nbeeler/in cd /nobackup1/nbeeler/ ls -lt mkdir in mkdir out hostname pwd scp turing:/u/nbeeler/1st_Code_Improv_Milestone/in/run.prk.150003 run.prk.150003 scp turing:/u/nbeeler/1st_Code_Improv_Milestone/in/prk.input.150003 in scp turing:/u/nbeeler/1st_Code_Improv_Milestone/in/prk.dat.150003new in scp turing:/u/nbeeler/1st_Code_Improv_Milestone/src-bin/park park ls -lt time mpirun -np 256 ./park < run.prk.150003 > out/std_output_of_run.150003 # copy output files back to start directory on chapman scp -r out /u/nbeeler # -end of script-