Skip to content

Commit 6540394

Browse files
committed
Add debugging output.
1 parent 384a9c5 commit 6540394

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/physics/utils/pio_reader.F90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ subroutine get_netcdf_var_int_1d(this, varname, var, errmsg, errcode, start, cou
326326
if (do_subset) then
327327
!If subsetting is requested, then read only the specified
328328
!subset of the variable:
329+
write(*,*) 'var size:', size(var), alloc_dims(:)
330+
write(*,*) 'start/count:', start(:), count(:)
329331
errcode = pio_get_var(pio_file_handle, var_id, start, count, var(:))
330332
else
331333
!Otherwise, read the entire variable:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ subroutine test_pio_reader_1d_int_full_subset_read()
12851285

12861286

12871287
! Read 1D integer variable:
1288-
call reader%get_var("pressure", pressure, errmsg, errcode, start=(/0/), count=(/3/))
1288+
call reader%get_var("pressure", pressure, errmsg, errcode, start=(/1/), count=(/3/))
12891289

12901290
! Check that the variable was read successfully:
12911291
@assertEqual('', errmsg)

0 commit comments

Comments
 (0)