Created
August 27, 2015 18:20
-
-
Save wtbarnes/35cc15dee3a588c6deea to your computer and use it in GitHub Desktop.
shell script for creating SLURM job array for given EBTEL parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
### SLURM Parameters | |
#SBATCH --partition=commons | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks=1 | |
#SBATCH --job-name=emc_single_a2.5_L120.0 | |
#SBATCH --time=00:01:30 | |
### EBTEL Configuration options | |
alpha=2.5 | |
loopLength=120.0 | |
species=single | |
tpulse=100.0 | |
solver=rka4 | |
### Setup path to script and root config paths | |
script="$HOME/EBTEL_C/bin/ebtel quiet " | |
s1="$SHARED_SCRATCH/wtb2/EBTEL_C_runs/${species}_heating_runs/alpha${alpha}/config/" | |
s2="ebtel_L${loopLength}_tn" | |
s3="_tpulse${tpulse}_${solver}" | |
###Load file with all possible configurations | |
job_array=(`cat $s1"ebtel_L${loopLength}"$s3"_job_array.conf"`) | |
### Submit job | |
srun $script$s1$s2${job_array[$((2*$SLURM_ARRAY_TASK_ID))]}$s3"/"$s2${job_array[$((2*$SLURM_ARRAY_TASK_ID))]}$s3"_"${job_array[$((2*$SLURM_ARRAY_TASK_ID+1))]}".xml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment