#!/bin/bash -l
#PBS -N test_BGW
#PBS -q debug
#PBS -l mppwidth=24
#PBS -l walltime=00:30:00
#PBS -V

export TEMPDIRPATH=$SCRATCH/tmp

# Modify the below to change the number of threads per 
# MPI task if using OMP or threaded libraries
export OMP_NUM_THREADS=1

# Uncomment below to set number of
# procs in testsuite
export BGW_TEST_MPI_NPROCS=24

cd $PBS_O_WORKDIR 
export MPIEXEC=`which aprun`
# Uncomment below to test threaded version
#export OMP_NUM_THREADS=2
#export BGW_TEST_NPROCS=8
#export MPIEXEC="`which aprun` -d 2"
make check-parallel &> test.out

echo "Exit status = $?"
