diff --git a/src/data/write_init_files.py b/src/data/write_init_files.py index 500787ab..5957a63d 100644 --- a/src/data/write_init_files.py +++ b/src/data/write_init_files.py @@ -1119,12 +1119,12 @@ def write_phys_read_subroutine(outfile, host_dict, host_vars, host_imports, outfile.write("end if", 5) outfile.write("field_data_ptr(:,:,constituent_idx) = constituent_default_value", 5) outfile.write("if (masterproc) then", 5) - outfile.write("write(iulog,*) 'Constituent ', trim(ccpp_required_data(req_idx)), ' initialized to default value: ', constituent_default_value", 6) + outfile.write("write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value", 6) outfile.write("end if", 5) outfile.write("else", 4) outfile.write("field_data_ptr(:,:,constituent_idx) = 0._kind_phys", 5) outfile.write("if (masterproc) then", 5) - outfile.write("write(iulog,*) 'Constituent ', trim(ccpp_required_data(req_idx)), ' default value not configured. Setting to 0.'", 6) + outfile.write("write(iulog,*) 'Constituent ', trim(std_name), ' default value not configured. Setting to 0.'", 6) outfile.write("end if", 5) outfile.write("end if", 4) outfile.write("end if", 3)