#!/bin/bash #SBATCH -p public # targeting the public partition #SBATCH --ntasks-per-core=1 # disabling multithreading #SBATCH --exclusive # exclusive access to the node #SBATCH -w gaya[1-4] # specifying nodes to use #SBATCH -n 200 # reserving 200 compute cores #SBATCH -J scaling # naming the job #SBATCH --array=0-11 # creating a SLURM job array of 12 sub-jobs NPS=(1 2 4 12 20 25 40 50 100 120 150 200) np=${NPS[$SLURM_ARRAY_TASK_ID]} N=$((40 * $np)) mpirun -np $np llg3d --N ${N} --Jx 3000 --Jy 21 --Jz 21 --n_mean 0 --solver mpi --result_file run_${np}.npz --profiling