#!/bin/bash -l
#PBS -N test_BGW
#PBS -l nodes=1:ppn=8
#PBS -l walltime=00:30:00
#PBS -V

export TEMPDIRPATH=$HOME/tmp

#export OMP_NUM_THREADS=2

# Uncomment below to set number of
# procs in testsuite
export BGW_TEST_MPI_NPROCS=8
export MACHINELIST=" -machinefile $PBS_NODEFILE"
NPROCS=`wc -l < $PBS_NODEFILE`

cd $PBS_O_WORKDIR 
#export MPIEXEC="`which mpirun`"
# Uncomment below to test threaded version
export MPIEXEC="`which mpirun` "
make check-parallel &> test.out

echo "Exit status = $?"
