#!/bin/bash

#SBATCH --job-name=pt
#SBATCH --ntasks=10
#SBATCH --mem-per-cpu=1G
#SBATCH --cpus-per-task=10

set -o errexit # Exit the script on any error
set -o nounset # Treat any unset variables as an error

module --quiet purge # Reset the modules to the system default
module load Armadillo/11.4.3-foss-2022b
module load OpenMPI/4.1.5-GCC-12.3.0

# Args
start_temp=$1
end_temp=$2
points_temp=$3
samples=$4

srun ./bin/phase_transition_mpi $start_temp $end_temp $points_temp ${SLURM_ARRAY_TASK_ID} $samples 0 ./output/$samples/size_${SLURM_ARRAY_TASK_ID}.txt
