Commit 0807b92c authored by Mike Bedington's avatar Mike Bedington

Bug fixes and option extracting

parent 3ca5619d
[jinja2:suite.rc]
## Run properties
INITIAL_START_DATE='2018-11-20T00:00:00Z'
FINAL_CYCLE_POINT='+P5D'
RUNDAYS=1
INITIAL_START_DATE='2018-11-22T12:00:00Z'
FINAL_CYCLE_POINT='NONE'
MAIL_TO='mbe@pml.ac.uk'
# GFS settings
EURYALE_GFS_ARCHIVE
CETO_GFS_DIR
EURYALE_GFS_ARCHIVE='/data/sthenno1/backup/mbe/Data/gfs_forcing/'
CETO_GFS_DIR='/gpfs1/users/modellers/mbe/Data/wrf_gfs_rolling_archive'
## CMEMS settings
CMEMS_DATA_DIR='/data/sthenno1/backup/mbe/Data/CMEMS'
......@@ -5,23 +5,15 @@
[scheduling]
initial cycle point = {{INITIAL_START_DATE}}
{%- if FINAL_CYCLE_POINT not in ['NONE','None'] %}
final cycle point = {{FINAL_CYCLE_POINT}}
{%- endif %}
[[special tasks]]
clock-trigger = start_cycle(PT0M)
[[dependencies]]
[[[R1]]]
graph = """
copy_common_to_remote => softlink_forcing_remote
write_run_namelist => hot_cold_start => run_fvcom
"""
[[[P1D]]]
graph = """
run_fvcom[-P1D] => start_cycle => softlink_forcing & softlink_forcing_remote => write_run_namelist
"""
[[[+P1D/P1D]]]
[[[PT6H]]]
graph = """
run_fvcom[-P1D] => transfer_restart => run_fvcom
start_cycle => get_GFS_data & get_CMEMS_data
"""
[runtime]
......@@ -37,46 +29,15 @@
[[[environment]]]
START_DATE=$(rose date --print-format='%Y-%m-%d %H:%M:%S' $CYLC_TASK_CYCLE_POINT)
END_DATE=$(rose date --offset=P1D --print-format='%Y-%m-%d %H:%M:%S' $CYLC_TASK_CYCLE_POINT)
START_DATE_STR=$(rose date --print-format='%Y-%m-%d_%H:%M:%S' $CYLC_TASK_CYCLE_POINT)
END_DATE_STR=$(rose date --offset=P1D --print-format='%Y-%m-%d_%H:%M:%S' $CYLC_TASK_CYCLE_POINT)
START_DAY=$(rose date --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT)
END_DAY=$(rose date --offset=P1D --print-format='%Y-%m-%d' $CYLC_TASK_CYCLE_POINT)
CMEMS_DATA_DIR={{CMEMS_DATA_DIR}}
EURYALE_GFS_ARCHIVE={{EURYALE_GFS_ARCHIVE}}
CETO_GFS_DIR={{CETO_GFS_DIR}}
[[slurm_job]]
[[[job]]]
batch system = slurm
submission polling intervals = PT10S
execution polling intervals = PT10S, PT1M
[[[directives]]]
--nodes = {{MIN_NODES}}-{{MAX_NODES}}
--ntasks-per-node=20
--threads-per-core=1
--time=24:00:00
{%- if USE_CETO %}
[[[remote]]]
host = login.ceto.npm.ac.uk
owner = mbe
{%- endif %}
[[slurm_job_1]]
inherit = slurm_job
[[[directives]]]
--nodes = 1
--ntasks-per-node = 1
--threads-per-core=1
--time=24:00:00
[[remote_job]]
{%- if USE_CETO %}
[[[remote]]]
host = login.ceto.npm.ac.uk
owner = mbe
{%- endif %}
[[start_cycle]]
script = """
echo "starting download at "${START_DATE}
"""
[[get_CMEMS_data]]
[[get_GFS_data]]
[[transfer_GFS_data]]
inherit = slurm_job_1
Markdown is supported
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