From be8e6d436b72b0a7ba9559af6340d45bade30726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de> Date: Fri, 12 May 2023 17:15:40 +0200 Subject: [PATCH] Add fix to deal with output_nml in all prepare_namelist scripts. --- templates/real-from-dwd-ana/prepare_namelist.py | 2 +- templates/real-from-ideal/prepare_ideal_namelist.py | 2 ++ templates/real-from-ideal/prepare_namelist.py | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/real-from-dwd-ana/prepare_namelist.py b/templates/real-from-dwd-ana/prepare_namelist.py index a9be67b..f259ad5 100644 --- a/templates/real-from-dwd-ana/prepare_namelist.py +++ b/templates/real-from-dwd-ana/prepare_namelist.py @@ -120,7 +120,7 @@ def main(): """ # Process atmosphere namelist atmosphere_namelist = f90nml.read(ATMOSPHERE_NAMELIST_PATH.as_posix()) - # Convert output_nml to a cogroup. + # Convert output_nml to a co-group. atmosphere_namelist.create_cogroup("output_nml") print("Original atmosphere namelist:") print(atmosphere_namelist) diff --git a/templates/real-from-ideal/prepare_ideal_namelist.py b/templates/real-from-ideal/prepare_ideal_namelist.py index af95b8a..b2cafe8 100644 --- a/templates/real-from-ideal/prepare_ideal_namelist.py +++ b/templates/real-from-ideal/prepare_ideal_namelist.py @@ -111,6 +111,8 @@ def main(): """ # Process atmosphere namelist atmosphere_namelist = f90nml.read(ATMOSPHERE_NAMELIST_PATH.as_posix()) + # Convert output_nml to a co-group. + atmosphere_namelist.create_cogroup("output_nml") print("Original atmosphere namelist:") print(atmosphere_namelist) atmosphere_namelist.patch(atmosphere_namelist_replacements) diff --git a/templates/real-from-ideal/prepare_namelist.py b/templates/real-from-ideal/prepare_namelist.py index d377e56..fa2d0e7 100644 --- a/templates/real-from-ideal/prepare_namelist.py +++ b/templates/real-from-ideal/prepare_namelist.py @@ -125,6 +125,8 @@ def main(): # Read custom namelist parameters from configuration file atmosphere_custom_namelist = read_namelist(atmosphere_namelist_string) + # Convert output_nml to a co-group. + atmosphere_namelist.create_cogroup("output_nml") if atmosphere_custom_namelist is not None: try: -- GitLab