...
 
Commits (3)
[command]
default = python3 make_nest_bound.py ${CMEMS_DATA_DIR} ${START_DAY} ${END_DAY} ${ROSE_DATAC}/${GRID_NAME}_grd.dat ${ROSE_DATAC}/sigma_gen.dat ${COORDINATES} ${HARMONICS_FILE_PATH} ${NEST_INTERVAL}; cp boundary_nest.nc /${REMOTE_TRANSFER_DIR}/
default = python3 make_nest_bound.py ${CMEMS_DATA_DIR} ${START_DAY} ${END_DAY} ${ROSE_DATAC}/${GRID_NAME}_grd.dat ${ROSE_DATAC}/sigma_gen.dat ${COORDINATES} ${HARMONICS_FILE_PATH} ${NEST_INTERVAL} ${ADJUST_TIDES}; mv boundary_nest.nc /${REMOTE_TRANSFER_DIR}/
[command]
default = cp -r ${RIVER_MODEL_PATH}/* .; python3 river_make.py ${GRID_NAME} ${ROSE_DATAC} ${START_DATE_STR} ${END_DATE_STR} ${COORDINATES} ${TODAY_WRF_FILE}; mv ${GRID_NAME}_riv* /${REMOTE_TRANSFER_DIR}
default = ln -s ${RIVER_MODEL_PATH}/* .; python3 river_make.py ${GRID_NAME} ${ROSE_DATAC} ${START_DATE_STR} ${END_DATE_STR} ${COORDINATES} ${TODAY_WRF_FILE}; mv ${GRID_NAME}_riv* /${REMOTE_TRANSFER_DIR}
rose-suite_ROSA.conf
\ No newline at end of file
rose-suite_TAMAR.conf
\ No newline at end of file
[jinja2:suite.rc]
## Run properties
COLD_START=False
ARCHIVE_RESTART=True
SEDIMENT=False
USE_CETO=True
FORECAST=True
NODES=10
REMOTE_USER='modop'
INITIAL_START_DATE='2019-05-15T00:00:00Z'
INITIAL_START_DATE='2019-08-18T00:00:00Z'
FINAL_CYCLE_POINT='NONE'
HINDCAST_DAYS=1
FORECAST_DAYS=2
......@@ -20,6 +21,7 @@ COMMON_FILES_PATH='/users/modellers/modop/Models/FVCOM_tamar_common/'
ARCHIVE_DIR='data/sthenno1/scratch/modop/Model/FVCOM_tamar/output'
REMOTE_ARCHIVE_DIR='/gpfs1/users/modellers/modop/Output/FVCOM_tamar_rolling'
PLOT_DIR='data/sthenno1/scratch/modop/Model/FVCOM_tamar/plots'
RESTART_ARCHIVE_DIR='data/sthenno1/scratch/modop/Model/FVCOM_tamar/restart_files'
TEMP_ACTIVE='T'
SALT_ACTIVE='T'
......@@ -41,7 +43,7 @@ RIVER_MODEL='NEURAL_NET'
## Required if 'NEURAL_NET' or 'CLIMATOLOGY', the files expected depend on the RIVER_MODEL value
RIVER_MODEL_PATH='/users/modellers/modop/Models/FVCOM_tamar_rivermod'
## Required if 'NEURAL_NET', must omit first slash to allow use on remote and local
REMOTE_TRANSFER_DIR='users/modellers/modop/Rose_suites/tamar_transfer_dir'
REMOTE_TRANSFER_DIR='users/modellers/modop/Transfer_folders/tamar_transfer_dir'
## Boundary forcing
## Between 'TIDAL', 'CMEMS', and 'NEST_FILE'
......@@ -65,6 +67,8 @@ STARTUP_DMAX='5.00'
HORIZONTAL_MIXING_COEFFICIENT='2.000000e-01'
VERTICAL_MIXING_COEFFICIENT='1.000000e-05'
COORDINATES='cartesian'
RIVER_TS_SETTING='calculated'
OBC_ON='F'
# Output options
NC_INTERVAL='seconds= 3600.'
......
......@@ -18,6 +18,8 @@
write_run_namelist => adjust_namelist & generate_CMEMS_start => mv_start_file => run_fvcom
{% elif COLD_START and BOUNDARY_FORCING == 'NEST_FILE' %}
write_run_namelist => adjust_namelist & generate_nest_start => mv_start_file => run_fvcom
{% elif ARCHIVE_RESTART %}
transfer_archive_restart => run_fvcom
{% else %}
transfer_restart => run_fvcom
{% endif %}
......@@ -76,7 +78,7 @@
{% else %}
write_run_namelist => run_fvcom => transfer_data => clean_output
{% endif %}
run_fvcom => nan_check
run_fvcom => nan_check
"""
......@@ -85,6 +87,12 @@
run_fvcom[-P1D] => transfer_restart => run_fvcom
"""
[[[+P2D/P1D]]]
graph = """
run_fvcom => housekeeping
"""
[runtime]
[[root]]
env-script = eval $(rose task-env --cycle-offset=P1D)
......@@ -150,6 +158,7 @@
WRF_ARCHIVE_DATEFMT={{WRF_ARCHIVE_DATEFMT}}
COMMON_FILES_PATH={{COMMON_FILES_PATH}}
WRF_ARCHIVE_DATESTR=$(rose date --print-format={{WRF_ARCHIVE_DATEFMT}} $CYLC_TASK_CYCLE_POINT)
RESTART_ARCHIVE_DIR={{RESTART_ARCHIVE_DIR}}
{% if FORECAST %}
TODAY_WRF_FILE=/{{WRF_ARCHIVE_DIR}}/today/today_wrfout.nc
......@@ -316,10 +325,18 @@
echo "starting forecast cycle"
"""
[[transfer_restart]]
inherit = slurm_job_1
inherit = remote_job
script = """
ln -sf ${ROSE_DATACP1D}/output/${GRID_NAME}_restart_0001.nc ${ROSE_DATAC}/${GRID_NAME}_restart_0001.nc
mkdir -p /pml${RESTART_ARCHIVE_DIR}/${FORECAST_DAY}
cp ${ROSE_DATACP1D}/output/${GRID_NAME}_restart_0001.nc /pml${RESTART_ARCHIVE_DIR}/${FORECAST_DAY}/
"""
[[transfer_archive_restart]]
inherit = remote_job
script = """
cp /pml${RESTART_ARCHIVE_DIR}/${FORECAST_DAY}/${GRID_NAME}_restart_0001.nc ${ROSE_DATAC}
"""
[[nan_check]]
inherit = remote_job
[[remote_archive]]
......@@ -329,3 +346,9 @@
script = """
rm ${ROSE_DATAC}/output/${GRID_NAME}_0001.nc
"""
[[housekeeping]]
inherit = remote_job
script = """
rm ${ROSE_DATACP2D}/output/${GRID_NAME}_restart_0001.nc
"""