#!/bin/sh
#PBS -N Paraview
#PBS -l select=10:ncpus=24
#PBS -l walltime=24:00:00  
#PBS -l place=scatter
#PBS -l accelerator_type="None"
#PBS -o output
#PBS -e error 
#add the above line only for idqueue,small,small72,medium queue
#PBS -S /bin/sh@sdb -V
. /opt/modules/default/init/sh
module switch PrgEnv-cray PrgEnv-gnu
module load gcc/8.3.0
module load cray-mpich/7.7.10
module load cce
module load craype-haswell
module load cray-hdf5
module load cray-python/3.6.5.7

cd $PBS_O_WORKDIR
export LD_LIBRARY_PATH="/mnt/lustre/phy3/phyalan/paraview-cray/run/lib:$LD_LIBRARY_PATH"
aprun -j 1 -n 240 -N 24 ${PBS_O_WORKDIR}/paraview-cray/run/bin/pvserver --use-offscreen-rendering > connection_info
