#!/bin/csh #PBS -l walltime=0:10:00 #PBS -l ncpus=16 #PBS -o water_freq.out #PBS -joe # Make the module command available source /usr/share/modules/init/csh set echo # Load the gaussian module module load gaussian09 # Copy the input files to the scratch directory. # The scratch directory offers large capacity and high performance, # HOWEVER: it is not permanent storage and may be removed automatically # when the job ends. # Here the input and checkpoint files are in a subdirectory of the home dir # The subdirectory is named 'gaussian' cp $HOME/gaussian/water_freq $SCRATCH cp $HOME/gaussian/water.chk $SCRATCH # Move to the scratch directory to run the job. cd $SCRATCH # Define OMP_NUM_THREADS setenv OMP_NUM_THREADS 16 # Use $SCRATCH_RAMDISK for intermediate files setenv GAUS_SCRDIR $SCRATCH_RAMDISK # Execute Gaussian 09, writing the output to the scratch directory. # Use omplace to run the job omplace -nt $OMP_NUM_THREADS g09 < water_freq >& water_freq.log # ******** IMPORTANT **************** # Remember to move the checkpoint file to the file archiver # (so that it can be reused) when the job completes. # Here it is called 'water.chk' # # You will also want to copy the log file to a permanent directory # Here we copy it back to a subdirectory of the home directory. # ************************************* cp water_freq.log $HOME/gaussian