# # QSUB -s /bin/csh # QSUB -eo # QSUB -lT 10:00 # QSUB -q prem # QSUB -nr # ja cd $TMPDIR # # Make source and/or data file for timesgcm (zp1 = -17, kmx=45): # (may be submitted via MASnet with netsh, or via MIGS with nrnet) # set job = addch4 # job name set rdir = "sting:~foster/timesgcm/$job" set tdir = "sting:/d/foster/timesgcm/$job" set hdir = /home/sting/foster/timesgcm/$job set opath = /FOSTER/timesgcm/$job batchname $job. # output file name (no path) # rsh sting "cd $hdir; tarsrc" # tar src code on sting rcp $tdir/$job.tar . # get src tar file from sting tar xf $job.tar # untar source checkincs make || goto mkfail #rcp $rdir/$job.inp . # get input file from sting #pshell $job.ymp < $job.inp || goto xfail # execute the job pshell $job.ymp || goto xfail # execute the job #rcp gmeta $tdir/$job.cgm # return metacode to sting # ja -st exit # # Jump here if make failed: # mkfail: echo \>\>\> make failed -- exit \<\<\< ja -st exit # # Jump here if execution failed (could put debug or other cleanup here): # xfail: echo \>\>\> execution failed -- exit \<\<\< rcp gmeta $tdir/$job.cgm # return metacode to sting ja -st exit