#!/bin/sh #PBS -l nodes=1:ppn=1:opteron # This specifies the number and type of processors to be used #P-B-S -l mem=512mb # This specifies the amount of memory required #PBS -l walltime=30:00:00 # This specifies the amount of wall time that you think your jobs will need to run. Be conservative #PBS -l cput=30:00:00 # This specifies the amount of cpu time that you think your jobs will need to run. Be conservative #PBS -j oe # Useful debug information date echo "nodefile---------------------------- : $PBS_NODEFILE" cat $PBS_NODEFILE echo "--------------------------------" # Specifying Files INPUT="Input_SCRIPTOUT.txt" # This calls the Input file that was altered in the PBS file OUTPUT="Run_SCRIPTOUT.out" # This specifies an output file JOB="Run_SCRIPTOUT" # This is needed with using ANSYS as your solver # Add Ansys to the path (if you're using ANSYS as your solver) export PATH=/usr/local/ansys_inc/v90/ansys/bin/:$PATH # Make My Temporary Local Directory mkdir /tmp/$PBS_JOBID # Copy Input File to Temporary Local Directory cp ~/JobManager/$INPUT /tmp/$PBS_JOBID # Change to Temporary Local Directory cd /tmp/$PBS_JOBID # Run ANSYS (if you're using ANSYS as your solver) ansys90 -p ansysrf -b -j $JOB -I $INPUT -O $OUTPUT # Copy RST and OUT Back to My Home Directory (RST and OUT files are the result files created by the ANSYS solver) cp *.rst *.out ~/JobManager # Remove Temporary Local Directory (Clean-Up) rm -rf /tmp/$PBS_JOBID # Remove Input File from My Home Directory rm ~/JobManager/$INPUT echo "DONE" date