#!/bin/bash
# PBS submission script for parallel Case 1

# M=6 processors
#PBS -l nodes=3:ppn=2:compute
#PBS -l walltime=00:15:00
#PBS -N DAKOTA_Case1


# for convenience, set DAKOTA and PATH environment variables
# put . on path to pickup the simulator script
export DAKOTA=/path/to/dakota
export PATH=.:$DAKOTA/bin:$DAKOTA/test:$PATH

# change into this example directory
cd $DAKOTA/tutorial/parallelism/Case1

# Case 1: Run DAKOTA in parallel and launch M-1 = 5 parallel analysis
# jobs at once (use default self_scheduling; to run M = 6 jobs, see
# dakota_pstudy.in for static_scheduling)

mpiexec -n 6 $DAKOTA/bin/dakota -i dakota_pstudy.in


