Skip to content

Commit

Permalink
fix: change diag_out.yaml output filename to diag_manifest.yaml (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored Feb 26, 2025
1 parent 60f2c1a commit d458e40
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions diag_manager/diag_manager.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3518,6 +3518,7 @@ LOGICAL FUNCTION send_data_4d(diag_field_id, field, time, is_in, js_in, ks_in, &
call fms_diag_object%fms_diag_accept_data(diag_field_id, field, mask_local, rmask_local, &
time, is_in, js_in, ks_in, ie_in, je_in, ke_in, weight, &
err_msg)
send_data_4d = .true.

if (present(err_msg)) then
if (err_msg .ne. "") then
Expand Down
2 changes: 1 addition & 1 deletion diag_manager/fms_diag_yaml.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ subroutine fms_diag_yaml_out()
enddo
tier2size = i

call write_yaml_from_struct_3( 'diag_out.yaml'//c_null_char, 1, keys, vals, &
call write_yaml_from_struct_3( 'diag_manifest.yaml'//c_null_char, 1, keys, vals, &
SIZE(diag_yaml%diag_files), keys2, vals2, &
tier3size, tier3each, keys3, vals3, &
(/size(diag_yaml%diag_files), 0, 0, 0, 0, 0, 0, 0/))
Expand Down
4 changes: 2 additions & 2 deletions test_fms/diag_manager/test_diag_out_yaml.F90
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ subroutine check_output_yaml
integer, parameter :: yaml_len = 402
character(len=128) :: out_yaml_line, ref_yaml_line
character(len=17), parameter :: ref_fname = 'diag_out_ref.yaml'
character(len=13), parameter :: out_fname = 'diag_out.yaml'
character(len=18), parameter :: out_fname = 'diag_manifest.yaml'
if( mpp_root_pe() .ne. mpp_pe()) return
open(newunit=un_out, file=out_fname, status="old", action="read")
open(newunit=un_ref, file=ref_fname, status="old", action="read")
Expand All @@ -58,4 +58,4 @@ subroutine check_output_yaml
end subroutine


end program
end program

0 comments on commit d458e40

Please sign in to comment.