@@ -392,7 +392,7 @@ def generate_registry(data_search, build_cache, atm_root, bldroot,
392
392
gen_fort_indent , source_mods_dir , atm_root ,
393
393
logger = _LOGGER , schema_paths = data_search ,
394
394
error_on_no_validate = True )
395
- retcode , reg_file_list , ic_names , registry_constituents = retvals
395
+ retcode , reg_file_list , ic_names , registry_constituents , vars_init_value = retvals
396
396
# Raise error if gen_registry failed:
397
397
if retcode != 0 :
398
398
emsg = "ERROR:Unable to generate CAM data structures from {}, err = {}"
@@ -406,15 +406,16 @@ def generate_registry(data_search, build_cache, atm_root, bldroot,
406
406
# Save build details in the build cache
407
407
reg_file_paths = [x .file_path for x in reg_file_list if x .file_path ]
408
408
build_cache .update_registry (gen_reg_file , registry_files , dycore ,
409
- reg_file_paths , ic_names , registry_constituents )
409
+ reg_file_paths , ic_names , registry_constituents , vars_init_value )
410
410
else :
411
411
# If we did not run the registry generator, retrieve info from cache
412
412
reg_file_paths = build_cache .reg_file_list ()
413
413
ic_names = build_cache .ic_names ()
414
414
registry_constituents = build_cache .constituents ()
415
+ vars_init_value = build_cache .vars_init_value ()
415
416
# End if
416
417
417
- return genreg_dir , do_gen_registry , reg_file_paths , ic_names , registry_constituents
418
+ return genreg_dir , do_gen_registry , reg_file_paths , ic_names , registry_constituents , vars_init_value
418
419
419
420
###############################################################################
420
421
def generate_physics_suites (build_cache , preproc_defs , host_name ,
@@ -659,7 +660,8 @@ def generate_physics_suites(build_cache, preproc_defs, host_name,
659
660
###############################################################################
660
661
def generate_init_routines (build_cache , bldroot , force_ccpp , force_init ,
661
662
source_mods_dir , gen_fort_indent ,
662
- cap_database , ic_names , registry_constituents ):
663
+ cap_database , ic_names , registry_constituents ,
664
+ vars_init_value ):
663
665
###############################################################################
664
666
"""
665
667
Generate the host model initialization source code files
@@ -697,7 +699,7 @@ def generate_init_routines(build_cache, bldroot, force_ccpp, force_init,
697
699
# within write_init_files (so that write_init_files can be the place
698
700
# where the source include files are stored).
699
701
source_paths = [source_mods_dir , _REG_GEN_DIR ]
700
- retmsg = write_init_files (cap_database , ic_names , registry_constituents ,
702
+ retmsg = write_init_files (cap_database , ic_names , registry_constituents , vars_init_value ,
701
703
init_dir , _find_file , source_paths ,
702
704
gen_fort_indent , _LOGGER )
703
705
0 commit comments