#!/bin/sh
#PBS -N myjobname
#PBS -l select=1
#//select 10 compute nodes

#PBS -l walltime=00:01:00   
#//maximum walltime for a job to run

##PBS -q temp0
#PBS -l place=scatter
#PBS -l accelerator_type=Intel
#//add the above line only for idqueue,small,small72,medium queue

#PBS -S /bin/sh@sdb -V	
#PBS -j oe

. /opt/modules/default/init/sh
cd $PBS_O_WORKDIR

export OMP_NUM_THREADS=4
export MPICH_MAX_THREAD_SAFETY=multiple
#Launch the parallel job
aprun -j 1 -n 2 -N 2 ./a.out
#//Using 240 MPI processes and 24 MPI processes per node
