#PBS -l nodes=4,walltime=1:00:00 #PBS -m abe #PBS -M username@your.address.here #PBS -N jobname # Create scratch directory on local disk mkdir -p /scratch/serial/$USER/$PBS_JOBID # Change to working directory cd /scratch/serial/$USER/$PBS_JOBID # Copy data files scratch directory cp $HOME/working_directory/data_files /scratch/serial/$USER/$PBS_JOBID # Execute serial or mpi job # include /uufs/arches/sys/pkg/mpich/std/bin in your path environment variable # note that for delicatearch or sanddunearch the MPI listed below does # not use the fast network interconnects /uufs/arches/sys/pkg/mpich/std/bin/mpirun -np 4 -machinefile $PBS_NODEFILE $HOME/working_directory/a.out > outputfile # Copy files back home and cleanup cp * $HOME/working_directory && cd .. && rm -rf /scratch/serial/$USER/$PBS_JOBID