Skip to content

Commit 6a5fddf

Browse files
committed
Add debugging output.
1 parent 7e5b549 commit 6a5fddf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/unit/fortran/src/pio_reader/test_pio_reader.pf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,8 @@ subroutine test_pio_reader_1d_char_full_subset_read()
15321532
character(len=*), parameter :: fname = &
15331533
"../../../rrtmgp-data/rrtmgp-gas-sw-g112.nc"
15341534

1535+
integer :: i !DEBUGGING -JN
1536+
15351537
! Begin test:
15361538

15371539
reader => create_netcdf_reader_t()
@@ -1551,6 +1553,11 @@ subroutine test_pio_reader_1d_char_full_subset_read()
15511553
@assertEqual(32, len(gas_names))
15521554
@assertEqual(6, size(gas_names))
15531555

1556+
! DEBUGGING -JN
1557+
do i=1, size(gas_names)
1558+
write(*,*) "gas_names(", i, ") = '", trim(gas_names(i)), "'"
1559+
end do
1560+
15541561
! Check that the variable's values are correct:
15551562
@assertEqual("cfc11", trim(gas_names(10)))
15561563
@assertEqual("cfc12", trim(gas_names(11)))

0 commit comments

Comments
 (0)