Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ values='planar', 'spherical'
[namelist:lfric2lfric=destination_mesh_name]
compulsory=true
description=Tag-name for destination-mesh
fail-if=this == namelist:lfric2lfric=source_mesh_name ;
help=Mesh topologies are held in UGRID conformant NetCDF files which
=may contain more than one mesh topology. This tag-name identifies
=the mesh topology to use from the mesh file namelist:lfric2lfric=destination_meshfile_prefix.
Expand Down Expand Up @@ -183,7 +182,6 @@ values='planar', 'spherical'
[namelist:lfric2lfric=source_mesh_name]
compulsory=true
description=Tag-name for source-mesh
fail-if=this == namelist:lfric2lfric=destination_mesh_name ;
help=Mesh topologies are held in UGRID conformant NetCDF files which
=may contain more than one mesh topology. This tag-name identifies
=the mesh topology to use from the mesh file namelist:lfric2lfric=source_meshfile_prefix.
Expand All @@ -194,7 +192,6 @@ type=character
[namelist:lfric2lfric=source_meshfile_prefix]
compulsory=true
description=Location of source 2D mesh input file(s) (prefix).
fail-if=namelist:lfric2lfric=regrid_method == "'map'" and this != namelist:lfric2lfric=destination_meshfile_prefix ;
help=Input files for 2D meshes are in NetCDF file format. The mesh topologies in the file should
=be conformant to UGRID convention.
=
Expand Down Expand Up @@ -240,8 +237,6 @@ type=character
compulsory=true
description=The domain type that the source data will be regridded to.
!enumeration=true
fail-if=this == "'LBC'" and namelist:lfric2lfric=origin_domain == "'LAM'" # LAM cannot provide source values for LBC creation
=this == "'global'" and namelist:lfric2lfric=origin_domain == "'LAM'" # LAM cannot currently be regrid into global
help=Target domains currently not supported include:
=
= origin => target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ def __repr__(self):

"""
Copy this template and complete to add your macro

class vnXX_txxx(MacroUpgrade):
# Upgrade macro for <TICKET> by <Author>

BEFORE_TAG = "vnX.X"
AFTER_TAG = "vnX.X_txxx"

def upgrade(self, config, meta_config=None):
# Add settings
return config, self.reports
Expand All @@ -50,7 +47,6 @@ def upgrade(self, config, meta_config=None):
self.add_setting(config, [nml, "init_eos_height"], eos_height)
self.add_setting(config, [nml, "init_exner_method"], "'hydrostatic'")
self.add_setting(config, [nml, "init_sort_theta"], ".true.")

return config, self.reports


Expand All @@ -63,5 +59,16 @@ class vn32_t479(MacroUpgrade):
def upgrade(self, config, meta_config=None):
# Commands From: rose-meta/lfric-gungho
self.add_setting(config, ["namelist:mixing", "fullstress"], ".false.")
return config, self.reports


class vn32_t655(MacroUpgrade):
"""Upgrade macro for ticket #655 by Christine Johnson."""

BEFORE_TAG = "vn3.2_t479"
AFTER_TAG = "vn3.2_t655"

def upgrade(self, config, meta_config=None):
# Commands From: rose-meta/lfric-lfric2lfric
# Blank Upgrade Macro
return config, self.reports
9 changes: 0 additions & 9 deletions rose-stem/app/lfric2lfric/opt/rose-app-C128-lam.conf

This file was deleted.

19 changes: 0 additions & 19 deletions rose-stem/app/lfric2lfric/opt/rose-app-C12_C16_lam.conf

This file was deleted.

20 changes: 0 additions & 20 deletions rose-stem/app/lfric2lfric/opt/rose-app-clim_gal9_ral_seuk.conf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[namelist:lfric2lfric]
destination_mesh_name='C24'
destination_meshfile_prefix='${MESH_DIR}/C24_C12/mesh_C24_C12'
source_mesh_name='C12'
source_meshfile_prefix='${MESH_DIR}/C24_C12/mesh_C24_C12'
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[namelist:lfric2lfric]
destination_meshfile_prefix='${MESH_DIR}/seuk_MG/mesh_seuk_MG'
source_meshfile_prefix='${MESH_DIR}/seuk_MG/mesh_seuk_MG'
destination_topology='non_periodic'
target_domain='LAM'

[namelist:partitioning(destination)]
partitioner='planar'

[namelist:partitioning(source)]
partitioner='planar'
8 changes: 8 additions & 0 deletions rose-stem/app/lfric2lfric/opt/rose-app-dst_seuk.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[namelist:lfric2lfric]
destination_mesh_name='dynamics'
destination_meshfile_prefix='${MESH_DIR}/seuk_MG/mesh_seuk_MG'
destination_topology='non_periodic'
target_domain='LAM'

[namelist:partitioning(destination)]
partitioner='planar'
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ stretching_method='smooth'
[namelist:files]
checkpoint_stem_name='restart_lfric2lfric_clim_gal9_C12_MG'
start_dump_filename='lfric2lfric_clim_gal9_C12_MG'

[namelist:lfric2lfric]
source_mesh_name='C12'
source_meshfile_prefix='${MESH_DIR}/C24_C12/mesh_C24_C12'
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ coord_order=2
coord_order_nonprime=2

[namelist:lfric2lfric]
destination_topology='non_periodic'
origin_domain='LAM'
source_meshfile_prefix='${MESH_DIR}/seuk_MG/mesh_seuk_MG'
source_topology='non_periodic'
target_domain='LAM'

[namelist:orography]
orography_order=2
2 changes: 1 addition & 1 deletion rose-stem/app/lfric2lfric/rose-app.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
meta=lfric-lfric2lfric/vn3.2_t479
meta=lfric-lfric2lfric/vn3.2_t655

[command]
default=$CORE_ROOT_DIR/bin/tweak_iodef; \
Expand Down
2 changes: 0 additions & 2 deletions rose-stem/app/mesh/opt/rose-app-C12_C16_lam.conf

This file was deleted.

44 changes: 22 additions & 22 deletions rose-stem/site/common/lfric2lfric/tasks_lfric2lfric.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{# The file LICENCE, distributed with this code, contains details of the terms #}
{# under which the code may be used. #}
{# ########################################################################### #}
{% do LOG.debug("Entered site/common/lfric2lfric/tasks_solver.cylc") %}
{% do LOG.debug("Entered site/common/lfric2lfric/tasks_lfric2lfric.cylc") %}

{% if task_ns.conf_name == "ral_seuk-C32_lam_MG_1cpu" %}

{% do task_dict.update({
"opt_confs": ["ral_seuk"],
"opt_confs": ["src_seuk_L70","dst_seuk-coarse"],
"resolution": "seuk_MG",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -22,7 +22,7 @@
{% elif task_ns.conf_name == "ral_seuk-C32_lam_MG_4cpu" %}

{% do task_dict.update({
"opt_confs": ["ral_seuk"],
"opt_confs": ["src_seuk_L70","dst_seuk-coarse"],
"resolution": "seuk_MG",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -37,7 +37,7 @@
{% elif task_ns.conf_name == "oasis_ral_seuk-C32_lam_MG_1cpu" %}

{% do task_dict.update({
"opt_confs": ["ral_seuk","oasis"],
"opt_confs": ["oasis","src_seuk_L70","dst_seuk-coarse"],
"resolution": "seuk_MG",
"dst_mesh": "seuk_MG",
"dst_name": "multigrid_l1",
Expand All @@ -51,7 +51,7 @@
{% elif task_ns.conf_name == "oasis_ral_seuk-C32_lam_MG_4cpu" %}

{% do task_dict.update({
"opt_confs": ["ral_seuk","oasis"],
"opt_confs": ["oasis","src_seuk_L70","dst_seuk-coarse"],
"resolution": "seuk_MG",
"dst_mesh": "seuk_MG",
"dst_name": "multigrid_l1",
Expand All @@ -66,7 +66,7 @@
{% elif task_ns.conf_name == "ral3-seuk" %}

{% do task_dict.update({
"opt_confs": ["ral3"],
"opt_confs": ["ral3","ral3_seuk"],
"resolution": "ral3_seuk",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -80,7 +80,7 @@
{% elif task_ns.conf_name == "ral3-uk" %}

{% do task_dict.update({
"opt_confs": ["ral3"],
"opt_confs": ["ral3","ral3_uk"],
"resolution": "ral3_uk",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -94,7 +94,7 @@
{% elif task_ns.conf_name == "ral3-ukv" %}

{% do task_dict.update({
"opt_confs": ["ral3"],
"opt_confs": ["ral3","ral3_ukv"],
"resolution": "ral3_ukv",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -108,7 +108,7 @@
{% elif task_ns.conf_name == "clim_gal9-C24_C12_1cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9"],
"opt_confs": ["src_C12_L70","dst_C24"],
"resolution": "C24_C12",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -121,7 +121,7 @@
{% elif task_ns.conf_name == "clim_gal9-C24_C12_6cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9"],
"opt_confs": ["src_C12_L70","dst_C24"],
"resolution": "C24_C12",
"dst_mesh": "",
"dst_name": "",
Expand All @@ -134,7 +134,7 @@
{% elif task_ns.conf_name == "oasis_clim_gal9-C24_C12_1cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9","oasis"],
"opt_confs": ["oasis","src_C12_L70","dst_C24"],
"resolution": "C24_C12",
"dst_mesh": "C24_C12",
"dst_name": "C24",
Expand All @@ -147,7 +147,7 @@
{% elif task_ns.conf_name == "oasis_clim_gal9-C24_C12_6cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9","oasis"],
"opt_confs": ["oasis","src_C12_L70","dst_C24"],
"resolution": "C24_C12",
"dst_mesh": "C24_C12",
"dst_name": "C24",
Expand All @@ -161,8 +161,8 @@
{% elif task_ns.conf_name == "oasis_clim_gal9_C12-ral_seuk_C16_lam_1cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9_ral_seuk","oasis"],
"resolution": "C12_C16_lam",
"opt_confs": ["oasis","src_C12_L70","dst_seuk"],
"resolution": ["C24_C12", "seuk_MG"],
"dst_mesh": "seuk_MG",
"dst_name": "dynamics",
"dst_type": "regional",
Expand All @@ -175,8 +175,8 @@
{% elif task_ns.conf_name == "oasis_clim_gal9_C12-ral_seuk_C16_lam_4cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9_ral_seuk","oasis", "multi-cpu"],
"resolution": "C12_C16_lam",
"opt_confs": [ "oasis","src_C12_L70","dst_seuk","multi-cpu"],
"resolution": ["C24_C12", "seuk_MG"],
"dst_mesh": "seuk_MG",
"dst_name": "dynamics",
"dst_type": "regional",
Expand All @@ -190,8 +190,8 @@
{% elif task_ns.conf_name == "oasis_clim_gal9_C12-ral_seuk_C16_lam-lbc_1cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9_ral_seuk","oasis","lbc"],
"resolution": "C12_C16_lam",
"opt_confs": ["oasis","src_C12_L70","dst_seuk","lbc"],
"resolution": ["C24_C12", "seuk_MG"],
"dst_mesh": "seuk_MG",
"dst_name": "dynamics-lbc",
"dst_type": "regional",
Expand All @@ -204,8 +204,8 @@
{% elif task_ns.conf_name == "oasis_clim_gal9_C12-ral_seuk_C16_lam-lbc_4cpu" %}

{% do task_dict.update({
"opt_confs": ["clim_gal9_ral_seuk","oasis","lbc", "multi-cpu"],
"resolution": "C12_C16_lam",
"opt_confs": ["oasis","src_C12_L70","dst_seuk","lbc","multi-cpu"],
"resolution": ["C24_C12", "seuk_MG"],
"dst_mesh": "seuk_MG",
"dst_name": "dynamics-lbc",
"dst_type": "regional",
Expand Down Expand Up @@ -238,7 +238,7 @@

{% endif %}

{# Set default values for Solver tasks #}
{# Set default values for Lfric2lfric tasks #}
{% if task_dict %}
{% do task_dict.update({"application_dir": "lfric_apps/applications/lfric2lfric"}) %}
{% if "app_name" not in task_dict %}
Expand All @@ -249,4 +249,4 @@
{% endif %}
{% endif %}

{% do LOG.debug("Finished in site/common/lfric2lfric/tasks_solver.cylc") %}
{% do LOG.debug("Finished in site/common/lfric2lfric/tasks_lfric2lfric.cylc") %}
8 changes: 5 additions & 3 deletions rose-stem/templates/graph/populate_crun_graph.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@
{% do graph_sections.append([
application_build_task,
crun_task]) %}
{% do graph_sections.append([
mesh_run_task,
crun_task]) %}
{% for mesh_run_task in mesh_run_tasks %}
{% do graph_sections.append([
mesh_run_task,
crun_task]) %}
{% endfor %}
{% else %}
{# All other runs depend on the run previously #}
{% do graph_sections.append([
Expand Down
Loading
Loading