From 4c03db7b39f2b46730afebb48d1dd188e103faf3 Mon Sep 17 00:00:00 2001
From: "Takumi.Matsunobu" <Takumi.Matsunobu@physik.uni-muenchen.de>
Date: Fri, 18 Aug 2023 12:29:00 +0200
Subject: [PATCH] Adapt for the lates ICON

---
 namelists/real-from-d2-ana/icon_atmosphere.namelist | 8 +++++++-
 templates/real-from-d2-ana/prepare_namelist.py      | 1 -
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/namelists/real-from-d2-ana/icon_atmosphere.namelist b/namelists/real-from-d2-ana/icon_atmosphere.namelist
index 3a454a5..40506cf 100644
--- a/namelists/real-from-d2-ana/icon_atmosphere.namelist
+++ b/namelists/real-from-d2-ana/icon_atmosphere.namelist
@@ -56,6 +56,12 @@
  psp_taper_profile     = 3
  psp_apply_ddt_core = .false. ! True if vertical wind perturbations should be applied at the explicit dynamical core timestep
  inwp_gscp                    = 4,4   ! 1: default, 2: graupel scheme for convection-permitting scales
+ !ccn_type_gscp4              =  8   ! CB new namelist parameter: 
+ !ccn_type_gscp5              =  8   ! CB new namelist parameter: 
+                                    !6: 100 maritime, 7: 500 intermediate, 8: 1700 continental, 9: 3200 polluted continental
+ !cloudnue_value              =  0   ! CB new namelist parameter for shape parameter (nu) of CDSD: 
+                                    ! -> cloud_cosmo5 (mu=1/3): 0 (REF), 1, 2, 4, 8 
+                                    ! -> cloud_nue1mue1 (mu=1): 1 (REF), 2, 4, 8 
  mu_rain                      = 0.5           ! new tuning becoming operational in July 2018
  rain_n0_factor               = 0.1           !       "
  ithermo_water         = 1
@@ -228,7 +234,7 @@
  luse_mu_Dm_rain       = .true.
  lturb_enhc            = .true.
  rain_cmu0             = -1.0
- cloudnue              =  0   ! CB new namelist parameter for shape parameter (nu) of CDSD: 
+ cloudnue              =  1   ! CB new namelist parameter for shape parameter (nu) of CDSD: 
                               ! -> cloud_nuexmue1 (mu=1): 0, 1 (REF), 2, 4, 8 
 /
 
diff --git a/templates/real-from-d2-ana/prepare_namelist.py b/templates/real-from-d2-ana/prepare_namelist.py
index 2eb9e2d..3ae3660 100644
--- a/templates/real-from-d2-ana/prepare_namelist.py
+++ b/templates/real-from-d2-ana/prepare_namelist.py
@@ -106,7 +106,6 @@ atmosphere_namelist_replacements = {
     "twomom_mcrph_nml": {
          "ccn_type" : ccn_type,
          "cloudnue" : cloudnue, 
-         "rainnue"  : 0,
     },
 
     # "radiation_nml": {
-- 
GitLab