Pittsburgh Supercomputing Center 

Advancing the state-of-the-art in high-performance computing,
communications and data analytics.

#!/bin/csh
#PBS -l ncpus=16
#PBS -l walltime=10:00
#PBS -N ex23
#PBS -o ex23.out
#PBS -j oe


#########################################################
#  Please note that this example uses 16 cores.         #
#  The turn around time for a 16 core job is very long. #
#  Please be prepared to wait.                          #
#  Alternately, because this is a short example job     #
#   you can submit it to the debug queue.               #
#  Note that the debug queue has many restrictions      #
#    and cannot be used for production runs.            #
#########################################################

set echo
ja
echo
echo
source /usr/share/modules/init/csh
echo
echo
module load petsc
echo
echo
module load gcc
echo
echo
cd $PBS_O_WORKDIR
echo 
echo
cp ex23.c $SCRATCH
cp Makefile $SCRATCH
cd $SCRATCH
echo
echo
make ex23
echo
echo
mpirun -np $PBS_NCPUS  ./ex23

ja -cshlt

Stay Connected

Stay Connected with PSC!

facebook 32 twitter 32 google-Plus-icon