From 61bac37940a0ff6397aa0e6b2217e9ddfca57fe5 Mon Sep 17 00:00:00 2001 From: Michael Duda Date: Tue, 24 Sep 2024 11:46:08 -0600 Subject: [PATCH 1/2] Make Noah-MP-only static fields optional in init_atmosphere core Prior to this commit, the soilcomp and soilcl{1,2,3,4} fields needed only by the Noah-MP scheme were required in all static files read by the init_atmosphere core. In cases where the Noah-MP scheme will not be used when running the atmosphere core, it would be desirable to not require these Noah-MP-only fields. This commit introduces a new namelist option and package in the init_atmosphere core to permit the use of static files that do not contain soilcomp and soilcl{1,2,3,4}. 1) The new config_noahmp_static namelist option in the &data_sources namelist group now determines whether the Noah-MP-only static fields will be allocated, read, computed, and written in the init_atmosphere core. This namelist option defaults to true, yielding the default behavior of the init_atmosphere_model program prior to this commit. 2) The new noahmp package, which is active if and only if config_noahmp_static is true, controls the allocation, reading, and writing of the Noah-MP-only static fields. 3) In the init_atm_static routine, which is called when config_static_interp is true, the soilcomp and soilcl{1,2,3,4} fields are computed only if config_noahmp_static is true. --- src/core_init_atmosphere/Registry.xml | 21 +++-- .../mpas_init_atm_core_interface.F | 27 ++++++ .../mpas_init_atm_static.F | 86 ++++++++++--------- 3 files changed, 89 insertions(+), 45 deletions(-) diff --git a/src/core_init_atmosphere/Registry.xml b/src/core_init_atmosphere/Registry.xml index ee422f40b5..7825a3155c 100644 --- a/src/core_init_atmosphere/Registry.xml +++ b/src/core_init_atmosphere/Registry.xml @@ -196,6 +196,11 @@ description="The supersampling factor to be used for 30s terrain, MODIS land use, soil category, and MODIS FPAR monthly vegetation fraction (case 7 only)" possible_values="Positive integer values"/> + + + @@ -822,19 +828,24 @@ + description="soil composition needed as input in the NOAH-MP land surface model" + packages="noahmp"/> + description="soil texture class level 1 needed as input for the NOAH-MP land surface model" + packages="noahmp"/> + description="soil texture class level 2 needed as input for the NOAH-MP land surface model" + packages="noahmp"/> + description="soil texture class level 3 needed as input for the NOAH-MP land surface model" + packages="noahmp"/> + description="soil texture class level 4 needed as input for the NOAH-MP land surface model" + packages="noahmp"/> Date: Wed, 27 Nov 2024 00:18:28 +0000 Subject: [PATCH 2/2] Omit 'config_noahmp_static' from the default namelist.init_atmosphere file Since the 'config_noahmp_static' option may not be used in typical workflows, rather than having it appear in the default generated namelist.init_atmosphere file, this option is now hidden by adding the in_defaults="false" attribute to its entry in the init_atmosphere core's Registry.xml file. --- src/core_init_atmosphere/Registry.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_init_atmosphere/Registry.xml b/src/core_init_atmosphere/Registry.xml index 7825a3155c..252174b581 100644 --- a/src/core_init_atmosphere/Registry.xml +++ b/src/core_init_atmosphere/Registry.xml @@ -196,7 +196,7 @@ description="The supersampling factor to be used for 30s terrain, MODIS land use, soil category, and MODIS FPAR monthly vegetation fraction (case 7 only)" possible_values="Positive integer values"/> -