#PBS -S /bin/ksh #PBS -N prk-15003 #PBS -q @chapman #PBS -l ncpus=1 #PBS -l mem=50mb #PBS -l walltime=24:00:00 #PBS -m e #PBS -o out/stdout_of_script.chapman.15003 #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 cd /scratch1/tullis/ # now remove items in scratch (and check that) so left over # ones won't cause problems for opening files that are 'new' rm -r in out park * *.* ls -lt mkdir in mkdir out hostname pwd scp turing:/u/tullis/BaselineMilestone/in/run.prk.15003 run.prk.15003 scp turing:/u/tullis/BaselineMilestone/in/prk.input.15003 in scp turing:/u/tullis/BaselineMilestone/in/prk.dat.15003 in scp turing:/u/tullis/BaselineMilestone/src-bin/park park ls -lt time ./park < run.prk.15003 > out/std_output_of_run.15003 # copy output files back to turing scp -r out turing:/u/tullis/BaselineMilestone # -end of script-