[LOCAL_SETUP]
FILE = templates/localsetup.tmpl.sh
PLATFORM = LOCAL
CHECK = true
NOTIFY_ON = FAILED

[SYNCHRONIZE]
FILE = templates/synchronize.tmpl.sh
PLATFORM = transfer_node
DEPENDENCIES = LOCAL_SETUP
CHECK = true
NOTIFY_ON = FAILED

[REMOTE_SETUP]
FILE = sources/runtime/autosubmit/compilation.sh
DEPENDENCIES = SYNCHRONIZE
WALLCLOCK = 2:00
PROCESSORS = 4
CUSTOM_DIRECTIVES = ["#SBATCH -p interactive"]
CHECK = true
NOTIFY_ON = FAILED

[INI]
FILE = templates/ini.tmpl.sh
DEPENDENCIES = REMOTE_SETUP
RUNNING = member
WALLCLOCK = 00:30
QUEUE = debug
CHECK = true
NOTIFY_ON = FAILED

[SIM]
FILE = sources/runtime/autosubmit/ece-esm.sh
DEPENDENCIES = INI SIM-1 CLEAN-3 NCTIME-3
RUNNING = chunk
WALLCLOCK = 2:00
PROCESSORS = 2400
TASKS = 48
THREADS = 1
CHECK = on_submission
#QUEUE = debug
NOTIFY_ON = FAILED

[CMOROCE]
FILE = templates/cmor.tmpl.sh
DEPENDENCIES = SIM
WALLCLOCK = 1:00
RUNNING = chunk
NOTIFY_ON = FAILED
TASKS = 8
QUEUE = debug
CUSTOM_DIRECTIVES = ["#SBATCH --exclusive"]
CHECK = true
#PLATFORM = nord3v2

[CMORATM]
FILE = templates/cmor.tmpl.sh
DEPENDENCIES = SIM SIM+1
WALLCLOCK = 3:00
RUNNING = chunk
NOTIFY_ON = FAILED
CUSTOM_DIRECTIVES = ["#SBATCH --exclusive"]
#QUEUE = debug
CHECK = true
#PLATFORM = nord3v2

#[CMORLPJG]
#FILE = templates/cmor.tmpl.sh
#DEPENDENCIES = SIM
#WALLCLOCK = 2:00
#RUNNING = chunk
#NOTIFY_ON = FAILED
#CUSTOM_DIRECTIVES =  ["#SBATCH --exclusive"]
#QUEUE = debug
#CHECK = true
#PLATFORM = nord3v2

#[CMORTM5]
#FILE = templates/cmor.tmpl.sh
#DEPENDENCIES = SIM
#WALLCLOCK = 2:00
#RUNNING = chunk
#NOTIFY_ON = FAILED
#CUSTOM_DIRECTIVES = ["#SBATCH --exclusive"]
#QUEUE = debug
#CHECK = true
#PLATFORM = nord3v2

[POST]
FILE = templates/post.tmpl.sh

DEPENDENCIES = CMORATM CMORATM+1 CMOROCE SAVEIC SIM SIM+1 POST-1
RUNNING = chunk
WALLCLOCK = 01:00
# when using the classic outclass make sure you are running POST in exclusive mode (for MN4): CUSTOM_DIRECTIVES = ["#SBATCH --exclusive"]
QUEUE = debug
CHECK = true
NOTIFY_ON = FAILED

[CLEAN]
FILE = templates/clean.tmpl.sh
PLATFORM = transfer_node
DEPENDENCIES = POST SIM SIM+1 CMOROCE CMORATM CMORATM+1 CLEAN-1
RUNNING = chunk
WALLCLOCK = 00:30
CHECK = true
NOTIFY_ON = FAILED

[EARTHDIAGS]
FILE = templates/earthdiags.tmpl.sh
PLATFORM = nord3
DEPENDENCIES = CLEAN EARTHDIAGS-1
RUNNING = chunk
WALLCLOCK = 01:00
QUEUE = debug
CHECK = true
NOTIFY_ON = FAILED

[MONITOR]
FILE = templates/monitor.tmpl.py
PLATFORM = nord3
DEPENDENCIES = EARTHDIAGS
RUNNING = chunk
WALLCLOCK = 01:00
QUEUE = sequential
CHECK = true
TYPE = python
EXECUTABLE = %PROJDIR%/es-esmvaltool/common-tools/auto-ecearth/nord3_launcher
PROCESSORS = 4
SKIPPABLE = TRUE
NOTIFY_ON = FAILED

[SAVEIC]
FILE = templates/saveic.tmpl.sh
DEPENDENCIES = SIM
RUNNING = chunk
WALLCLOCK = 02:00
CHECK = true
THREADS = 48
CUSTOM_DIRECTIVES = ["#SBATCH --exclusive"]
NOTIFY_ON = FAILED

[CLEAN_MEMBER]
FILE = templates/clean_member.tmpl.sh
PLATFORM = transfer_node
DEPENDENCIES = CLEAN PERFORMANCE_METRICS SAVEIC
RUNNING = member
WALLCLOCK = 02:00
CHECK = true
NOTIFY_ON = FAILED

[PERFORMANCE_METRICS]
FILE = templates/performance_metrics.tmpl.sh
DEPENDENCIES = CLEAN
RUNNING = once
PROCESSORS = 1
PLATFORM = LOCAL
CHECK = true
NOTIFY_ON = FAILED

[TRANSFER_MEMBER]
FILE = templates/transfer_member.tmpl.sh
PLATFORM = transfer_node
DEPENDENCIES = CLEAN_MEMBER
RUNNING = member
CHECK = true
NOTIFY_ON = FAILED

[NCTIME]
FILE = templates/nctime.tmpl.sh
PLATFORM = nord3
DEPENDENCIES = NCTIME-1 CLEAN CLEAN-1 CLEAN-2
RUNNING = chunk
FREQUENCY = 3
CHECK = true
WALLCLOCK = 01:00
NOTIFY_ON = FAILED

[CLEAN_EXPERIMENT]
FILE = templates/clean_experiment.tmpl.sh
DEPENDENCIES = NCTIME TRANSFER_MEMBER EARTHDIAGS MONITOR
PLATFORM = transfer_node
RUNNING = once
WALLCLOCK = 00:30
CHECK = true
NOTIFY_ON = FAILED

