Skip to content

Commit

Permalink
fix: add c_null_char to file name in diag manager output yaml test (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Lentz authored Oct 24, 2024
1 parent e74ab4a commit fd1b606
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test_fms/parser/test_output_yaml.F90
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,12 @@ program test_output_yaml
call yaml_out_add_level2key( "order 4",k1(1))
call yaml_out_add_level2key( "sides", k2(1))
call yaml_out_add_level2key( "specials", k2(2))
call write_yaml_from_struct_3 (trim(filename), 1, k1, v1, a2, k2, v2, a3, (/1, 1, 1, 1, 2, 1/), k3, v3, &
& (/ 1, 1, 1 , 1, 0 ,0 ,0 ,0/))
call write_yaml_from_struct_3 (trim(filename) // c_null_char, 1, k1, v1, a2, k2, v2, a3, &
& (/1, 1, 1, 1, 2, 1/), k3, v3, (/ 1, 1, 1 , 1, 0 ,0 ,0 ,0/))
else
!> Write the yaml
call write_yaml_from_struct_3 (trim(filename), 1, k1, v1, a2, k2, v2, a3, a3each, k3, v3,(/3, 0, 0, 0, 0, 0, 0, 0/))
call write_yaml_from_struct_3 (trim(filename) // c_null_char, 1, k1, v1, a2, k2, v2, a3, &
& a3each, k3, v3, (/3, 0, 0, 0, 0, 0, 0, 0/))
endif

!> Check yaml output against reference
Expand Down

0 comments on commit fd1b606

Please sign in to comment.