Introduction to slurm
cd sin
R CMD BATCH generate_inputs.R
Each input file contains the parameters (here just one x-value) for a set of 250 simulations.
Now these can be submitted as an 'array job' to slurm:
(running as sje30 on maths; change username as needed)
sbatch submit_array.sh
squeue -u sje30
Put all the results back together into one summary plot
Rscript summarise.R