Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
802f73c
add planar and cubedsphere meshes
cjohnson-pi Jun 11, 2026
5e8bc30
settings for lfric2lfric
cjohnson-pi Jun 11, 2026
8a4769c
correct
cjohnson-pi Jun 11, 2026
da5621a
split
cjohnson-pi Jun 11, 2026
958f218
correcting C12_C16_lam
cjohnson-pi Jun 11, 2026
ca5d328
correction
cjohnson-pi Jun 11, 2026
6c3c7ba
correction
cjohnson-pi Jun 11, 2026
a621fee
correction
cjohnson-pi Jun 11, 2026
4aa352d
Add upgrade macro for solver
cjohnson-pi Jun 19, 2026
cecd7d3
change ticket number
cjohnson-pi Jun 19, 2026
0405a27
multires
cjohnson-pi Jun 19, 2026
f4e6248
Merge remote-tracking branch 'upstream/main' into rename_meshes
cjohnson-pi Jun 19, 2026
40e67f2
ticket number
cjohnson-pi Jun 19, 2026
fe34014
indentation
cjohnson-pi Jun 19, 2026
3b96000
typo
cjohnson-pi Jun 19, 2026
25288fd
typo
cjohnson-pi Jun 19, 2026
a8e34e4
update not add for base_mesh
cjohnson-pi Jun 22, 2026
0d05b53
lfric2lfric meshes
cjohnson-pi Jun 22, 2026
0ef6fad
lfricinputs
cjohnson-pi Jun 22, 2026
6e1f7ce
lfricinputs
cjohnson-pi Jun 22, 2026
5482ca7
planar_l0 to l0_planar
cjohnson-pi Jun 22, 2026
39779af
C24-C12
cjohnson-pi Jun 22, 2026
ff3196e
more planar_l0 to l0_planar
cjohnson-pi Jun 22, 2026
c288b35
corrections
cjohnson-pi Jun 23, 2026
fcefb31
lfric2lfric correction
cjohnson-pi Jun 23, 2026
bd92132
Main to Stable 2026.07.1 (#616)
t00sa Jul 13, 2026
312be53
Merge tag 'vn3.2' into rename_meshes
cjohnson-pi Jul 17, 2026
6a105bf
tidy
cjohnson-pi Jul 17, 2026
83f2a55
update ticket
cjohnson-pi Jul 17, 2026
fc0a21b
remove prime_mesh_name
cjohnson-pi Jul 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 145 additions & 0 deletions applications/solver/rose-meta/lfric-solver/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,148 @@ def upgrade(self, config, meta_config=None):
# Add settings
return config, self.reports
"""

class vn32_t551(MacroUpgrade):
"""Upgrade macro for ticket #551 by Christine Johnson."""

BEFORE_TAG = "vn3.2"
AFTER_TAG = "vn3.2_t551"

def upgrade(self, config, meta_config=None):
# Commands From: rose-meta/lfric-gungho
partitioner = self.get_setting_value(
config, ["namelist:partitioning", "partitioner"]
)
multigrid_chain_nitems = self.get_setting_value(
config, ["namelist:multigrid", "multigrid_chain_nitems"]
)
if partitioner == "'planar'":
self.add_setting(
config,
["namelist:base_mesh", "prime_mesh_name"],
"'l0_planar'",
forced=True,
)
if multigrid_chain_nitems == "4":
self.add_setting(
config,
["namelist:multigrid", "chain_mesh_tags"],
"'l0_planar','l1_planar','l2_planar','l3_planar'",
forced=True,
)
elif multigrid_chain_nitems == "3":
self.add_setting(
config,
["namelist:multigrid", "chain_mesh_tags"],
"'l0_planar','l1_planar','l2_planar'",
forced=True,
)
elif multigrid_chain_nitems == "2":
self.add_setting(
config,
["namelist:multigrid", "chain_mesh_tags"],
"'l0_planar','l1_planar'",
forced=True,
)
else:
self.add_setting(
config,
["namelist:base_mesh", "prime_mesh_name"],
"'l0_cubedsphere'",
forced=True,
)
if multigrid_chain_nitems == "4":
self.add_setting(
config,
["namelist:multigrid", "chain_mesh_tags"],
"'l0_cubedsphere','l1_cubedsphere','l2_cubedsphere','l3_cubedsphere'",
forced=True,
)
elif multigrid_chain_nitems == "3":
self.add_setting(
config,
["namelist:multigrid", "chain_mesh_tags"],
"'l0_cubedsphere','l1_cubedsphere','l2_cubedsphere'",
forced=True,
)
elif multigrid_chain_nitems == "2":
self.add_setting(
config,
["namelist:multigrid", "chain_mesh_tags"],
"'l0_cubedsphere','l1_cubedsphere'",
forced=True,
)
partitioner_dest = self.get_setting_value(
config, ["namelist:partitioning(destination)", "partitioner"]
)
destination_mesh_name = self.get_setting_value(
config, ["namelist:lfric2lfric", "destination_mesh_name"]
)
if partitioner_dest == "'planar'":
if destination_mesh_name == "'dynamics'":
self.add_setting(
config,
["namelist:lfric2lfric", "destination_mesh_name"],
"'l0_planar",
forced=True,
)
elif destination_mesh_name == "'multigrid_l1'":
self.add_setting(
config,
["namelist:lfric2lfric", "destination_mesh_name"],
"'l1_planar",
forced=True,
)
elif partitioner_dest == "'cubedsphere'":
if destination_mesh_name == "'dynamics'":
self.add_setting(
config,
["namelist:lfric2lfric", "destination_mesh_name"],
"'l0_planar",
forced=True,
)
elif destination_mesh_name == "'multigrid_l1'":
self.add_setting(
config,
["namelist:lfric2lfric", "destination_mesh_name"],
"'l1_cubedsphere",
forced=True,
)
partitioner_source = self.get_setting_value(
config, ["namelist:partitioning(source)", "partitioner"]
)
source_mesh_name = self.get_setting_value(
config, ["namelist:lfric2lfric", "source_mesh_name"]
)
if partitioner_source == "'planar'":
if source_mesh_name == "'dynamics'":
self.add_setting(
config,
["namelist:lfric2lfric", "source_mesh_name"],
"'l0_planar",
forced=True,
)
elif source_mesh_name == "'multigrid_l1'":
self.add_setting(
config,
["namelist:lfric2lfric", "source_mesh_name"],
"'l1_planar",
forced=True,
)
elif partitioner_source == "'cubedsphere'":
if source_mesh_name == "'dynamics'":
self.add_setting(
config,
["namelist:lfric2lfric", "source_mesh_name"],
"'l0_cubedsphere",
forced=True,
)
elif source_mesh_name == "'multigrid_l1'":
self.add_setting(
config,
["namelist:lfric2lfric", "source_mesh_name"],
"'l1_cubedsphere",
forced=True,
)

return config, self.reports
4 changes: 2 additions & 2 deletions rose-stem/app/lfric2lfric/opt/rose-app-C24_C12.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[namelist:lfric2lfric]
destination_mesh_name='C24'
destination_mesh_name='l0_cubedsphere'
destination_meshfile_prefix='${MESH_DIR}/C24_C12/mesh_C24_C12'
source_mesh_name='C12'
source_mesh_name='l1_cubedsphere'
source_meshfile_prefix='${MESH_DIR}/C24_C12/mesh_C24_C12'
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ checkpoint_stem_name='restart_lfric2lfric_ral_seuk_MG'
start_dump_filename='lfric2lfric_clim_gal9_C12_MG'

[namelist:lfric2lfric]
destination_mesh_name='l0_planar'
destination_topology='non_periodic'
target_domain='LAM'

Expand Down
32 changes: 16 additions & 16 deletions rose-stem/site/common/lfric2lfric/tasks_lfric2lfric.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"opt_confs": ["ral_seuk","oasis"],
"resolution": "seuk_MG",
"dst_mesh": "seuk_MG",
"dst_name": "multigrid_l1",
"dst_name": "l1_planar",
"dst_type": "regional",
"src_mesh": "seuk_MG",
"src_name": "dynamics",
"src_name": "l0_planar",
"src_type": "regional",
}) %}

Expand All @@ -51,10 +51,10 @@
"opt_confs": ["ral_seuk","oasis"],
"resolution": "seuk_MG",
"dst_mesh": "seuk_MG",
"dst_name": "multigrid_l1",
"dst_name": "l1_planar",
"dst_type": "regional",
"src_mesh": "seuk_MG",
"src_name": "dynamics",
"src_name": "l0_planar",
"src_type": "regional",
"mpi_parts": 4,
}) %}
Expand Down Expand Up @@ -130,10 +130,10 @@
"opt_confs": ["clim_gal9","oasis"],
"resolution": "C24_C12",
"dst_mesh": "C24_C12",
"dst_name": "C24",
"dst_name": "l0_cubedsphere",
"dst_type": "global",
"src_mesh": "C24_C12",
"src_name": "C12",
"src_name": "l1_cubedsphere",
"src_type": "global",
}) %}

Expand All @@ -143,10 +143,10 @@
"opt_confs": ["clim_gal9","oasis"],
"resolution": "C24_C12",
"dst_mesh": "C24_C12",
"dst_name": "C24",
"dst_name": "l0_cubedsphere",
"dst_type": "global",
"src_mesh": "C24_C12",
"src_name": "C12",
"src_name": "l1_cubedsphere",
"src_type": "global",
"mpi_parts": 6,
}) %}
Expand All @@ -157,10 +157,10 @@
"opt_confs": ["clim_gal9_ral_seuk","oasis"],
"resolution": "C12_C16_lam",
"dst_mesh": "seuk_MG",
"dst_name": "dynamics",
"dst_name": "l0_planar",
"dst_type": "regional",
"src_mesh": "C24_C12",
"src_name": "C12",
"src_name": "l1_cubedsphere",
"src_type": "global",
}) %}

Expand All @@ -170,10 +170,10 @@
"opt_confs": ["clim_gal9_ral_seuk","oasis", "multi-cpu"],
"resolution": "C12_C16_lam",
"dst_mesh": "seuk_MG",
"dst_name": "dynamics",
"dst_name": "l0_planar",
"dst_type": "regional",
"src_mesh": "C24_C12",
"src_name": "C12",
"src_name": "l1_cubedsphere",
"src_type": "global",
"mpi_parts": 4,
}) %}
Expand All @@ -184,10 +184,10 @@
"opt_confs": ["clim_gal9_ral_seuk","oasis","lbc"],
"resolution": "C12_C16_lam",
"dst_mesh": "seuk_MG",
"dst_name": "dynamics-lbc",
"dst_name": "l0_planar-lbc",
"dst_type": "regional",
"src_mesh": "C24_C12",
"src_name": "C12",
"src_name": "l1_cubedsphere",
"src_type": "global",
}) %}

Expand All @@ -197,10 +197,10 @@
"opt_confs": ["clim_gal9_ral_seuk","oasis","lbc", "multi-cpu"],
"resolution": "C12_C16_lam",
"dst_mesh": "seuk_MG",
"dst_name": "dynamics-lbc",
"dst_name": "l0_planar-lbc",
"dst_type": "regional",
"src_mesh": "C24_C12",
"src_name": "C12",
"src_name": "l1_cubedsphere",
"src_type": "global",
"mpi_parts": 4,
}) %}
Expand Down
6 changes: 3 additions & 3 deletions rose-stem/site/common/lfricinputs/tasks_lfric2um.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% do task_dict.update({
"opt_confs": [],
"resolution": "C48",
"mesh_name": "dynamics",
"mesh_name": "l0_cubedsphere",
"source_grid_res": "C48",
"source_grid_levs": "38",
"source_grid_type": "global",
Expand All @@ -26,7 +26,7 @@
{% do task_dict.update({
"opt_confs": ["performance"],
"resolution": "C224",
"mesh_name": "dynamics",
"mesh_name": "l0_cubedsphere",
"source_grid_res": "C224",
"source_grid_levs": "70",
"source_grid_type": "global",
Expand All @@ -43,7 +43,7 @@
{% do task_dict.update({
"opt_confs": ["um_lam"],
"resolution": "C48",
"mesh_name": "dynamics",
"mesh_name": "l0_cubedsphere",
"source_grid_res": "C48",
"source_grid_levs": "70",
"source_grid_type": "global",
Expand Down
4 changes: 2 additions & 2 deletions rose-stem/site/common/lfricinputs/tasks_scintelapi.cylc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% do task_dict.update({
"opt_confs": ["basic"],
"resolution": "C48",
"mesh_name": "dynamics",
"mesh_name": "l0_cubedsphere",
"source_grid_res": "C48",
"source_grid_levs": "38",
"source_grid_type": "global",
Expand All @@ -25,7 +25,7 @@
{% do task_dict.update({
"opt_confs": ["mixingratio"],
"resolution": "C12",
"mesh_name": "dynamics",
"mesh_name": "l0_cubedsphere",
"source_grid_res": "C12",
"source_grid_levs": "70",
"source_grid_type": "global",
Expand Down
Loading
Loading