Skip to content

Commit

Permalink
fix bug from copied code
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Sep 20, 2024
1 parent 28becd1 commit 75cdffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/write_init_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75cdffb

Please sign in to comment.