#!/bin/bash
#SBATCH --job-name=dakota-case1
#SBATCH --partition=batch
#SBATCH --time=10:00
#SBATCH --nodes=1
#SBATCH --tasks-per-node=8

module load gcc/9.2.0 mvapich2/2.3.4 dakota/6.12
module load matlab/R2022b

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

srun dakota -i dakota-matlab.in -o dakota-matlab.out

