#!/bin/csh
#PBS -l walltime=5:00
#PBS -l ncpus=16
#PBS -o simple_xy_rd.out
#PBS -j oe
# make module command available
source /usr/share/modules/init/csh
set echo
#move to the scratch directory
cd $SCRATCH
# load the netcdf module (intel)
module load netcdf
# copy the source code and the dummy array from simple_xy_wr to $SCRATCH
cp $HOME/netcdf/simple_xy_rd.f90 .
cp simple_xy.ncdump $SCRATCH
ifort -o simple_xy_rd simple_xy_rd.f90 -I${NETCDF_DIR}/include -L${NETCDF_DIR}/lib -lnetcdf -lmpi
mpirun -np 16 ./simple_xy_rd