Skip to content
Snippets Groups Projects
Commit 48c773fd authored by Maximilian Schmidt's avatar Maximilian Schmidt
Browse files

Add example for jobscript_template

parent de97754f
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment