From 40fd2d74a9ee1de735f25138e9b977df17756267 Mon Sep 17 00:00:00 2001 From: Grant Firl Date: Wed, 13 Dec 2023 13:33:31 -0500 Subject: [PATCH] add standard name of ccpp_t instance for the empty-init case rather than local name to fix bug --- scripts/mkstatic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkstatic.py b/scripts/mkstatic.py index f86f738f..af8ba731 100755 --- a/scripts/mkstatic.py +++ b/scripts/mkstatic.py @@ -1617,7 +1617,7 @@ def write(self, metadata_request, metadata_define, arguments, debug): #the initialized_set_block for the init phase tries to reference the unavailable ccpp_t variable. if (ccpp_stage == 'init' and not self.parents[ccpp_stage]): ccpp_var.intent = 'in' - self.parents[ccpp_stage].update({ccpp_var.local_name:ccpp_var}) + self.parents[ccpp_stage].update({ccpp_var.standard_name:ccpp_var}) # Get list of arguments, module use statement and variable definitions for this subroutine (=stage for the group) (self.arguments[ccpp_stage], sub_module_use, sub_var_defs) = create_arguments_module_use_var_defs(