#!/bin/sh #PBS -q checkpt # the queue to be used. #PBS -M aaa@abc.com #PBS -l nodes=n:ppn=p #PBS -l walltime=hh:mm:ss # requested Wall-clock time. # #PBS -V # #PBS -o sl15stdout32 #PBS -e sl15stderr32 # name of the standard out file to be "output-file". # #PBS -N jobname # name of the job (that will appear on executing the qstat command) to be "syschk". # #PBS -A allocation # Following are non PBS commands. PLEASE ADOPT THE SAME EXECUTION SCHEME # i.e. execute the job by copying the necessary files from your home directpory # to the scratch space, execute in the scratch space, and copy back # the necessary files to your home directory. # WORK_DIR=/work/username/hurricane export NPROCS=`wc -l $PBS_NODEFILE |gawk '//{print $1}'` # REQUIRED for PBS to work. # copies necessary files from home directory to scratch space. cd $WORK_DIR echo "Creating the simulation" fort="fort.14" option1=1 option2=2 echo "Calling adcprep for the first time" ./adcprep <