Skip to content

Commit 75cdffb

Browse files
author
Courtney Peverley
committed
fix bug from copied code
1 parent 28becd1 commit 75cdffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/write_init_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,12 +1119,12 @@ def write_phys_read_subroutine(outfile, host_dict, host_vars, host_imports,
11191119
outfile.write("end if", 5)
11201120
outfile.write("field_data_ptr(:,:,constituent_idx) = constituent_default_value", 5)
11211121
outfile.write("if (masterproc) then", 5)
1122-
outfile.write("write(iulog,*) 'Constituent ', trim(ccpp_required_data(req_idx)), ' initialized to default value: ', constituent_default_value", 6)
1122+
outfile.write("write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value", 6)
11231123
outfile.write("end if", 5)
11241124
outfile.write("else", 4)
11251125
outfile.write("field_data_ptr(:,:,constituent_idx) = 0._kind_phys", 5)
11261126
outfile.write("if (masterproc) then", 5)
1127-
outfile.write("write(iulog,*) 'Constituent ', trim(ccpp_required_data(req_idx)), ' default value not configured. Setting to 0.'", 6)
1127+
outfile.write("write(iulog,*) 'Constituent ', trim(std_name), ' default value not configured. Setting to 0.'", 6)
11281128
outfile.write("end if", 5)
11291129
outfile.write("end if", 4)
11301130
outfile.write("end if", 3)

0 commit comments

Comments
 (0)