From 94760ab83f144be6078325a362fec99b7b93a1cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Wed, 17 May 2023 17:21:29 +0200
Subject: [PATCH] Fix bug in prepare_ideal_namelist.py

---
 templates/real-from-ideal/prepare_ideal_namelist.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/real-from-ideal/prepare_ideal_namelist.py b/templates/real-from-ideal/prepare_ideal_namelist.py
index b2cafe8..33423c5 100644
--- a/templates/real-from-ideal/prepare_ideal_namelist.py
+++ b/templates/real-from-ideal/prepare_ideal_namelist.py
@@ -119,6 +119,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