diff --git a/config_template.py b/config_template.py index 4f3f7ad5cde91703b5a42f9fbb1021e0ade2d84a..fbda94ed7ec03b7af2f71d0dda39596319787a97 100644 --- a/config_template.py +++ b/config_template.py @@ -3,10 +3,25 @@ base_path = None # Place to store simulations data_path = None # Template for job scripts -jobscript_template = """ +jobscript_template = ''' # Instruction for the queuing system -mpirun python {base_path}/run_simulation.py {label}""" +mpirun python {base_path}/run_simulation.py {label}''' + +""" +Here is an example for the Slurm queueing system: + +# jobscript_template = '''#!/bin/bash +# #SBATCH --job-name MAM +# #SBATCH -o {sim_dir}/{label}.%j.o +# #SBATCH -e {sim_dir}/{label}.%j.e +# #SBATCH --mem=120G +# #SBATCH --time=06:00:00 +# #SBATCH --exclusive +# #SBATCH --cpus-per-task={local_num_threads} +# #SBATCH --ntasks={num_processes} +# mpirun python {base_path}/run_simulation.py {label} {network_label}''' +""" # Command to submit jobs on the local cluster submit_cmd = None